forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
51 lines (41 loc) · 1.29 KB
/
default.nix
File metadata and controls
51 lines (41 loc) · 1.29 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
let
sources = import ./nix/sources.nix;
pinned = import sources."nixpkgs" { config = {}; overlays = []; };
in
{ pkgs ? pinned
# Build an optimized release package.
# Currently requires dependents to use LTO. Use sparingly.
, release ? false
}:
let
inherit (pkgs) callPackage;
mavenix = import sources."mavenix" { inherit pkgs; };
ttuegel = import sources."ttuegel" { inherit pkgs; };
llvm-backend-project = import ./llvm-backend/src/main/native/llvm-backend {
inherit pkgs;
inherit release;
src = ttuegel.cleanGitSubtree {
name = "llvm-backend";
src = ./.;
subDir = "llvm-backend/src/main/native/llvm-backend";
};
};
inherit (llvm-backend-project) clang llvm-backend;
k = callPackage ./nix/k.nix {
inherit haskell-backend llvm-backend mavenix prelude-kore;
inherit (ttuegel) cleanGit cleanSourceWith;
};
haskell-backend-project = import ./haskell-backend/src/main/native/haskell-backend {
src = ttuegel.cleanGitSubtree {
src = ./.;
subDir = "haskell-backend/src/main/native/haskell-backend";
};
};
haskell-backend = haskell-backend-project.kore;
inherit (haskell-backend-project) prelude-kore;
self = {
inherit k clang llvm-backend haskell-backend;
inherit mavenix;
inherit (pkgs) mkShell;
};
in self