-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.nix
31 lines (29 loc) · 899 Bytes
/
build.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
{ system ? builtins.currentSystem
, nixBase ? "18.09"
}:
let
pkgsMake = import ./nix/fetchPkgsMake.nix {};
nixVersion = import (./. + "/nix/${nixBase}.nix");
nixpkgs = import ./nix/fetchNixPkgs.nix nixVersion;
pkgsMakeArgs = {
nixpkgsRev = nixVersion.rev;
nixpkgsSha256 = nixVersion.sha256;
haskellArgs = {
envMoreTools = [
pkgs.haskellPackages.apply-refact
pkgs.haskellPackages.cabal2nix
pkgs.haskellPackages.cabal-install
pkgs.haskellPackages.ghcid
pkgs.haskellPackages.hlint
pkgs.haskellPackages.hoogle
pkgs.haskellPackages.stylish-cabal
pkgs.haskellPackages.stylish-haskell
];
};
};
pkgs = import nixpkgs { inherit system; };
in
pkgsMake pkgsMakeArgs ({ call, lib, ... }: rec {
haskell-overridez-exe = call.haskell.cabal2nix.app ./.;
haskell-overridez = call.package ./nix/wrapper;
})