-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
34 lines (33 loc) · 1.13 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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlays.default ];
};
in with pkgs; {
overlays.default = final: prev:
let
hpkgs = prev.haskellPackages.override {
overrides = hself: hsuper: {
arch-web = prev.haskell.lib.dontCheck
(hself.callCabal2nix "arch-web" (builtins.fetchTarball {
url =
"https://hackage.haskell.org/package/arch-web-0.2/arch-web-0.2.tar.gz";
sha256 =
"0306ky9a4rfc4lz838kykl91br6s7sm9dkp446425g3yjh6x26zl";
}) { });
};
};
arch-hs = hpkgs.callCabal2nix "arch-hs" ./. { };
in with final;
with haskell.lib; {
inherit arch-hs;
arch-hs-dev =
addBuildTools arch-hs [ cabal-install haskell-language-server ];
};
packages.x86_64-linux.default = arch-hs;
devShells.x86_64-linux.default = arch-hs-dev.envFunc { };
};
}