-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
72 lines (70 loc) · 2.29 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
{
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 = ''An "sh" alternative!'';
inputs = rec {
bundle = {
url = "https://github.com/sylvorg/bundle.git";
type = "git";
submodules = true;
};
valiant.follows = "bundle/valiant";
nixpkgs.follows = "bundle/nixpkgs";
pyPkg-oreo.url =
"git+https://github.com/syvlorg/oreo.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;
callPackage = { callPackage }:
callPackage (iron.mkPythonPackage {
inherit self inputs;
package = {
src = ./.;
postPatch = ''
substituteInPlace pyproject.toml \
--replace "oreo = { git = \"https://github.com/syvlorg/oreo.git\", branch = \"main\" }" ""
substituteInPlace setup.py \
--replace "'oreo @ git+https://github.com/syvlorg/oreo.git@main'" "" || :
'';
};
}) { };
pname = "bakery";
} { };
}