forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (31 loc) · 1.14 KB
/
flake.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
32
33
34
{
description = "A language and an embedded JIT compiler";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
let
overlays = [
(import ./nix/overlays.nix {
inherit system;
version = "${nixpkgs.lib.substring 0 8 self.lastModifiedDate}.${self.shortRev or "dirty"}";
src = self;
llvmVersions = [ 6 8 9 10 11 12 ];
gccConstraints = [
{ gccVersion = 6; llvmVersions = [ 6 8 9 ]; }
{ gccVersion = 8; llvmVersions = [ 6 8 9 10 11 12 ]; }
{ gccVersion = 9; llvmVersions = [ 6 8 9 10 11 12 ]; }
{ gccVersion = 10; llvmVersions = [ 6 8 9 10 11 12 ]; }
];
})
];
pkgs = import nixpkgs {
inherit system overlays;
};
in
rec {
packages = flake-utils.lib.flattenTree (pkgs.recurseIntoAttrs {
inherit (pkgs) hobbesPackages;
});
defaultPackage = packages."hobbesPackages/clang-8/hobbes";
});
}