-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (43 loc) · 1.31 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
{
inputs = { };
outputs = inputs:
let
pkgs = inputs.self.packages.x86_64-linux;
lib = {
mkDerivation = { name, buildInputs, env }:
derivation ({
name = name;
system = "x86_64-linux";
builder = ./builder.sh;
buildInputs = buildInputs;
} // env);
};
in
{
packages = {
x86_64-linux = {
default = lib.mkDerivation {
name = "dulli";
buildInputs = with pkgs; [ busybox ];
env = { person = "Felix"; };
};
busybox = derivation
{
name = "busybox";
system = "x86_64-linux";
builder = ./busybox.sh;
busybox = (import <nix/fetchurl.nix>) {
url = https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox;
sha256 = "sha256-mVOoYPn3r9NYiZjQf5AF2p7hXy1Q4kN5RSscc/PGpiY=";
executable = true;
};
cp = (import <nix/fetchurl.nix>) {
url = https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox_CP;
sha256 = "sha256-SohMSgXijkdN8Y7LE522obQ0QUAs8xBEQl+p0w8iAVc=";
executable = true;
};
};
};
};
};
}