-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.nix
33 lines (31 loc) · 909 Bytes
/
release.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
{ pkgs ? import <nixpkgs> {} }: rec {
sunfish-grapheneOS = {
inherit (import ./configs/sunfish-grapheneos.nix {}) releaseScript;
};
payton = {
inherit (import ./configs/payton.nix {}) releaseScript;
};
runCommandHook = {
sign-and-serve = pkgs.runCommand "sign-and-serve" {
extra_path = pkgs.lib.makeBinPath (with pkgs; [
coreutils
gawk
gnupg
gnutar
rsync
]);
robotnix_keystore_encrypted = pkgs.fetchurl {
url = "https://nc.helsinki.tools/s/b9FXZqNSYMyZXbw/download/robotnix-keys.tar.gpg";
sha256 = "1sypdzqil7nh9xkk18285n82ka9m4zv31wzhq3w7a52vkvja7hyl";
};
release_scripts = pkgs.lib.concatMapStringsSep " " (x: x.releaseScript) [
sunfish-grapheneOS
payton
];
} ''
substituteAll ${./sign-and-serve.sh} $out
chmod +x $out
patchShebangs $out
'';
};
}