-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
74 lines (64 loc) · 2.09 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
description = "katara";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
inputs.poetry2nix-flake = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.rosette-packages.url = "github:input-output-hk/empty-flake?rev=2040a05b67bf9a669ce17eca56beb14b4206a99a";
outputs = { self, nixpkgs, flake-utils, poetry2nix-flake, nixos-generators, gitignore, rosette-packages }: (flake-utils.lib.eachDefaultSystem (system:
with import nixpkgs {
inherit system;
overlays = [ poetry2nix-flake.overlay ];
};
{
devShell = mkShell {
buildInputs = [
(poetry2nix.mkPoetryEnv {
python = python38;
projectDir = ./.;
overrides = poetry2nix.overrides.withDefaults (_: poetrySuper: {
metalift = poetrySuper.metalift.overrideAttrs(_: super: {
nativeBuildInputs = super.nativeBuildInputs ++ [ poetrySuper.poetry ];
});
autoflake = poetrySuper.autoflake.overrideAttrs(_: super: {
nativeBuildInputs = super.nativeBuildInputs ++ [ poetrySuper.hatchling ];
});
});
})
cvc5
cmake
llvm_11
clang_11
];
};
}
)) // {
packages.x86_64-linux = {
# nix build .#vm-nogui --override-input rosette-packages ../rosette-packages
vm-nogui = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [
({ pkgs, ... }: {
nixpkgs.overlays = [ poetry2nix-flake.overlay ];
})
./artifact.nix
];
format = "vm-nogui";
specialArgs = {
gitignore = gitignore;
rosette-packages = rosette-packages;
};
};
};
};
}