-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
82 lines (80 loc) · 2.78 KB
/
flake.nix
File metadata and controls
82 lines (80 loc) · 2.78 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
nixConfig = {
# Adapted From: https://github.com/divnix/digga/blob/main/examples/devos/flake.nix#L4
accept-flake-config = true;
auto-optimise-store = true;
builders-use-substitutes = true;
cores = 0;
extra-experimental-features =
"nix-command flakes impure-derivations recursive-nix";
fallback = true;
flake-registry =
"https://raw.githubusercontent.com/syvlorg/flake-registry/master/flake-registry.json";
keep-derivations = true;
keep-outputs = true;
max-free = 1073741824;
min-free = 262144000;
show-trace = true;
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nickel.cachix.org-1:ABoCOGpTJbAum7U6c+04VbjvLxG9f0gJP5kYihRRdQs="
"sylvorg.cachix.org-1:xd1jb7cDkzX+D+Wqt6TemzkJH9u9esXEFu1yaR9p8H8="
];
trusted-substituters = [
"https://cache.nixos.org/"
"https://nix-community.cachix.org"
"https://nickel.cachix.org"
"https://sylvorg.cachix.org"
];
warn-dirty = false;
};
description = "Ooh, shiny!";
inputs = rec {
bundle = {
url = "https://github.com/sylvorg/bundle.git";
type = "git";
submodules = true;
};
valiant.follows = "bundle/valiant";
nixpkgs.follows = "bundle/nixpkgs";
pyPkg-bakery.url =
"git+https://github.com/syvlorg/bakery.git";
pyPkg-tailapi.url =
"git+https://github.com/syvlorg/tailapi.git";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = inputs@{ self, flake-utils, ... }:
with builtins;
with inputs.bundle.lib;
with flake-utils.lib;
inputs.bundle.mkOutputs.python {
inherit inputs self;
pname = "bootstrap";
doCheck = false;
isApp = true;
callPackage = args@{ callPackage }:
callPackage (iron.mkPythonPackage {
inherit self inputs;
recursiveOverrides = toList "postCheck";
package = rec {
owner = "syvlorg";
inherit (self) doCheck;
src = ./.;
postPatch = ''
substituteInPlace pyproject.toml \
--replace "bakery = { git = \"https://github.com/syvlorg/bakery.git\", branch = \"main\" }" "" \
--replace "tailapi = { git = \"https://github.com/syvlorg/tailapi.git\", branch = \"main\" }" ""
substituteInPlace setup.py \
--replace "'bakery @ git+https://github.com/syvlorg/bakery.git@main'," "" \
--replace "'tailapi @ git+https://github.com/syvlorg/tailapi.git@main'," "" || :
'';
meta.description = "Ooh, shiny!";
};
}) { };
} { };
}