forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
27 lines (26 loc) · 882 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
23
24
25
26
27
{ nixpkgs ? import (fetchTarball { url="https://github.com/NixOs/nixpkgs/archive/a3ab47ec9067b5f9fccda506fc8641484c3d8e73.tar.gz";
sha256="1f1q89ka73ksvl5hgbrf624x0niwm2rg3dzxiscir0bji6zvjy15";
}),
}:
let
overlays = [
(import ./nix/overlays.nix {
version = "unstable";
system = builtins.currentSystem;
src = ./.;
llvmVersions = [ 6 8 9 10 11 ];
gccConstraints = [
{ gccVersion = 6; llvmVersions = [ 6 8 9 ]; }
{ gccVersion = 8; llvmVersions = [ 6 8 9 10 11 ]; }
{ gccVersion = 9; llvmVersions = [ 6 8 9 10 11 ]; }
{ gccVersion = 10; llvmVersions = [ 6 8 9 10 11 ]; }
];
})
];
pkgs = nixpkgs {
inherit overlays;
};
in with pkgs; recurseIntoAttrs {
inherit hobbesPackages;
inherit (hobbesPackages.gcc-8.llvm-6) hobbes;
}