-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
22 lines (21 loc) · 925 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ sources ? import ./nix/sources.nix { inherit system; }
, pkgs ? import sources.nixpkgs { inherit system; }
, compiler ? "ghc8103"
, system ? builtins.currentSystem
}:
let
overrides = foldOs [
((import sources.sawtooth-haskell-protos { nixpkgs = pkgs; ghc = compiler; inherit system; }).sawtooth-haskell-protos-overlay)
(hself: hsuper: {
type-level-sets = hsuper.callCabal2nix "type-level-sets" sources.type-level-sets { };
generic-arbitrary = hsuper.callCabal2nix "generic-arbitrary" sources.generic-arbitrary { };
secp256k1-haskell = hsuper.callCabal2nix "secp256k1-haskell" sources.secp256k1-haskell { inherit (pkgs) secp256k1; };
sawtooth-sdk = hsuper.callCabal2nix "sawtooth-sdk" ./. { };
})
];
haskell = pkgs.haskell.packages.${compiler}.override {
inherit overrides;
};
foldOs = pkgs.lib.foldl' pkgs.lib.composeExtensions (self: super: { });
in
haskell.sawtooth-sdk