-
Notifications
You must be signed in to change notification settings - Fork 1
/
h8x.nix
22 lines (17 loc) · 866 Bytes
/
h8x.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
let
dev = import ./dev.nix;
inherit (dev) h8x-commit hackage-nix-commit;
h8x-pin = "https://github.com/input-output-hk/haskell.nix/archive/${h8x-commit}.tar.gz";
h8x-src = builtins.fetchTarball h8x-pin;
hackage-nix-pin = "https://github.com/input-output-hk/hackage.nix/archive/${hackage-nix-commit}.tar.gz";
hackage-nix-src = builtins.fetchTarball hackage-nix-pin;
h8x = import h8x-src { sourcesOverride = { hackage = hackage-nix-src; }; };
in
import
# haskell.nix provides access to the nixpkgs pins which are used by our CI,
# hence you will be more likely to get cache hits when using these. But you
# can also just use your own, e.g. '<nixpkgs>'.
h8x.sources.nixpkgs-unstable
# These arguments passed to nixpkgs, include some patches and also the
# haskell.nix functionality itself as an overlay.
h8x.nixpkgsArgs