-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.nix
More file actions
29 lines (29 loc) · 907 Bytes
/
Copy pathrelease.nix
File metadata and controls
29 lines (29 loc) · 907 Bytes
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
{ compiler ? (pkgs: pkgs.haskellPackages) }:
let
pkgs = import ./pkgs.nix { inherit config; };
config = {
packageOverrides = pkgs: rec {
libtcod = pkgs.callPackage ./derivations/libtcod.nix {};
haskellPackages = (compiler pkgs).override { overrides = haskOverrides; };
};
};
gitignore = pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "siers";
repo = "nix-gitignore";
rev = "ce0778ddd8b1f5f92d26480c21706b51b1af9166";
sha256 = "1d7ab78i2k13lffskb23x8b5h24x7wkdmpvmria1v3wb9pcpkg2w";
}) {};
ignore = gitignore.gitignoreSourceAux ''
.stack-work
dist
dist-newstyle
.ghc.environment*
'';
haskOverrides = new: old: rec {
tcod-haskell = new.callCabal2nix "tcod-haskell" (ignore ./.) {};
sdl2 = new.callPackage ./derivations/sdl2.nix {};
};
in {
inherit pkgs;
packages = { inherit (pkgs.haskellPackages) tcod-haskell; };
}