tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
etcher: throw on unsupported systems
figsoda
4 years ago
684c175f
0214723a
+6
-2
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
etcher
default.nix
+6
-2
pkgs/tools/misc/etcher/default.nix
···
9
}:
10
11
let
0
0
0
0
12
sha256 = {
13
"x86_64-linux" = "sha256-n8i4ZqjugeUfXpTzVgIwVomfPk6HvPEbTZLe/jFgwFg=";
14
"i686-linux" = "sha256-lLGfhW6el2ZOcaykH1kTjGldXo7/0q5O8QnslnDlWAQ=";
15
-
}."${stdenv.system}";
16
17
arch = {
18
"x86_64-linux" = "amd64";
19
"i686-linux" = "i386";
20
-
}."${stdenv.system}";
21
22
electron = electron_12;
23
···
9
}:
10
11
let
12
+
inherit (stdenv.hostPlatform) system;
13
+
14
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
15
+
16
sha256 = {
17
"x86_64-linux" = "sha256-n8i4ZqjugeUfXpTzVgIwVomfPk6HvPEbTZLe/jFgwFg=";
18
"i686-linux" = "sha256-lLGfhW6el2ZOcaykH1kTjGldXo7/0q5O8QnslnDlWAQ=";
19
+
}."${system}" or throwSystem;
20
21
arch = {
22
"x86_64-linux" = "amd64";
23
"i686-linux" = "i386";
24
+
}."${system}" or throwSystem;
25
26
electron = electron_12;
27