-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
37 lines (35 loc) · 1.06 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
description = "reflex-backend-socket";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
nixpkgs = import inputs.nixpkgs { inherit system; };
package = nixpkgs.haskellPackages.callPackage
./reflex-backend-socket.nix
{ };
ghc8107 = nixpkgs.haskell.packages.ghc8107;
ghc922 = nixpkgs.haskell.packages.ghc922.override {
overrides = final: prev: with nixpkgs.haskell.lib; {
patch = doJailbreak prev.patch;
};
};
in
{
defaultPackage = package;
devShell = package.env.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ nixpkgs.cabal-install ];
});
devShells = {
ghc8107 = ghc8107.callPackage ./reflex-backend-socket.nix { };
ghc922 = ghc922.callPackage ./reflex-backend-socket.nix { };
};
}
);
}