-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnilla.nix
More file actions
68 lines (59 loc) · 1.33 KB
/
nilla.nix
File metadata and controls
68 lines (59 loc) · 1.33 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
let
pins = import ./npins;
nilla = import pins.nilla;
systems = [
"x86_64-linux"
"aarch64-linux"
];
in
nilla.create (
{ config, ... }:
{
config = {
inputs = {
nixpkgs = {
src = pins.nixpkgs;
settings.overlays = [
(
final: prev:
let
callPackage = final.callPackage;
in
{
inherit (callPackage "${pins.gomod2nix}/builder" { }) buildGoApplication mkGoEnv mkVendorEnv;
gomod2nix = callPackage "${pins.gomod2nix}/default.nix" { };
}
)
];
};
};
packages.default = config.packages.nilla-utils-plugins;
packages.nilla-utils-plugins = {
inherit systems;
builder = "nixpkgs";
settings.pkgs = config.inputs.nixpkgs.result;
package = import ./package.nix;
};
shells.default = {
inherit systems;
builder = "nixpkgs";
settings.pkgs = config.inputs.nixpkgs.result;
shell =
{
mkShellNoCC,
npins,
gomod2nix,
nvd,
...
}:
mkShellNoCC {
packages = [
npins
gomod2nix
nvd
];
};
};
};
}
)