-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (45 loc) · 1.41 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
35
36
37
38
39
40
41
42
43
44
45
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, flake-compat }:
let
overlay = (final: prev: {
euforiaPackages = final.lib.makeScope final.newScope (self: with self; {
immer = callPackage ./immer.nix {};
fmt = callPackage ./fmtlib.nix {};
z3 = callPackage ./z3.nix {};
mathsat = callPackage ./mathsat.nix {};
outputCheck = callPackage ./outputcheck.nix {};
propagateConst = callPackage ./propagate-const.nix {};
euforia = callPackage ./euforia.nix { inherit self; };
});
});
in
{
inherit overlay;
} //
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { overlays = [ overlay ]; inherit system; };
in {
packages = pkgs.euforiaPackages;
defaultPackage = pkgs.euforiaPackages.euforia;
devShell =
let
euforiaDev = pkgs.euforiaPackages.euforia.override { debugVersion = true; };
in
pkgs.mkShell {
inputsFrom = [ euforiaDev ];
packages = with pkgs; [ creduce universal-ctags ];
inherit (euforiaDev) cmakeFlags;
hardeningDisable = [ "all" ];
TAGS = "${euforiaDev.tags}/tags";
CXXFLAGS = "-Werror";
};
});
}