-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
29 lines (29 loc) · 890 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
inherit (pkgs) lib haskell;
hsPkgs = pkgs.haskellPackages.extend (hfinal: hprev: {
ghc-wasm-bindists = hfinal.developPackage {
root = lib.sourceFilesBySuffices ./. [ ".cabal" ".hs" ];
modifier = haskell.lib.compose.overrideCabal {
enableExecutableProfiling = false;
doHaddock = false;
};
};
});
in
{
devShells.default = hsPkgs.shellFor {
packages = p: [ p.ghc-wasm-bindists ];
nativeBuildInputs = [
pkgs.cabal-install
];
};
packages.default = hsPkgs.ghc-wasm-bindists;
});
}