tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
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
9
}:
10
10
11
11
let
12
12
+
inherit (stdenv.hostPlatform) system;
13
13
+
14
14
+
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
15
15
+
12
16
sha256 = {
13
17
"x86_64-linux" = "sha256-n8i4ZqjugeUfXpTzVgIwVomfPk6HvPEbTZLe/jFgwFg=";
14
18
"i686-linux" = "sha256-lLGfhW6el2ZOcaykH1kTjGldXo7/0q5O8QnslnDlWAQ=";
15
15
-
}."${stdenv.system}";
19
19
+
}."${system}" or throwSystem;
16
20
17
21
arch = {
18
22
"x86_64-linux" = "amd64";
19
23
"i686-linux" = "i386";
20
20
-
}."${stdenv.system}";
24
24
+
}."${system}" or throwSystem;
21
25
22
26
electron = electron_12;
23
27