forked from CardanoSolutions/kupo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
33 lines (33 loc) · 1 KB
/
default.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
{ compiler ? "ghc8107"
, system ? builtins.currentSystem
, haskellNix ? import
(builtins.fetchTarball
"https://github.com/input-output-hk/haskell.nix/archive/974a61451bb1d41b32090eb51efd7ada026d16d9.tar.gz")
{ }
, iohkNix ? import
(builtins.fetchTarball
"https://github.com/input-output-hk/iohk-nix/archive/edb2d2df2ebe42bbdf03a0711115cf6213c9d366.tar.gz")
{ }
, nixpkgsSrc ? haskellNix.sources.nixpkgs-unstable
, nixpkgsArgs ? haskellNix.nixpkgsArgs
}:
let
pkgs = import nixpkgsSrc (nixpkgsArgs // {
overlays =
# iohkNix overlay needed for cardano-api wich uses a patched libsodium
haskellNix.overlays ++ iohkNix.overlays.crypto;
});
musl64 = pkgs.pkgsCross.musl64;
in
musl64.haskell-nix.project {
compiler-nix-name = compiler;
projectFileName = "cabal.project";
src = musl64.haskell-nix.haskellLib.cleanSourceWith {
name = "kupo-src";
src = ./.;
filter = path: type:
builtins.all (x: x) [
(baseNameOf path != "package.yaml")
];
};
}