forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
45 lines (36 loc) · 1.15 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
let
sources = import ./nix/sources.nix;
pinned = import sources."nixpkgs" { config = {}; overlays = []; };
in
{ pkgs ? pinned }:
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;
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