-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrelease.nix
28 lines (25 loc) · 928 Bytes
/
release.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
# https://github.com/Gabriel439/haskell-nix/blob/master/README.md
# https://github.com/Gabriel439/haskell-nix/blob/master/project1/release2.nix
let
config = {
packageOverrides = pkgs: rec {
docker-container-hahp = pkgs.dockerTools.buildImage {
name = "hahp-container";
config.Cmd = [ "${haskellPackages.hahp-hydra}/bin/hahp-example" ];
};
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
hahp-hydra =
haskellPackagesNew.callPackage ./default.nix {
liblapack = pkgs.liblapack;
openblasCompat = pkgs.openblasCompat;
};
};
};
};
};
pkgs = import <nixpkgs> { inherit config; };
in
{ hahp-hydra = pkgs.haskellPackages.hahp-hydra;
hahp-container = pkgs.docker-container-hahp;
}