···6 arch =
7 if stdenv.system == "x86_64-linux" then "amd64"
8 else if stdenv.system == "i686-linux" then "i386"
9- else abort "Unsupported architecture";
10 sha256 =
11 if arch == "amd64"
12 then "0dwnppn5snl5bwkdrgj4cyylnhngi0g66fn2k41j3dvis83x24k6"
···6 arch =
7 if stdenv.system == "x86_64-linux" then "amd64"
8 else if stdenv.system == "i686-linux" then "i386"
9+ else throw "Unsupported system ${stdenv.system}";
10 sha256 =
11 if arch == "amd64"
12 then "0dwnppn5snl5bwkdrgj4cyylnhngi0g66fn2k41j3dvis83x24k6"
+1-1
pkgs/applications/misc/playonlinux/default.nix
···48 ld32 =
49 if stdenv.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
50 else if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
51- else abort "Unsupported platform for PlayOnLinux: ${stdenv.system}";
52 ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
53 libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xlibs.libX11 ];
54
···48 ld32 =
49 if stdenv.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
50 else if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
51+ else throw "Unsupported platform for PlayOnLinux: ${stdenv.system}";
52 ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
53 libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xlibs.libX11 ];
54
···44assert swingSupport -> xorg != null;
4546let
47- abortArch = abort "jdk requires i686-linux, x86_64-linux, aarch64-linux or armv7l-linux";
4849 /**
50 * The JRE libraries are in directories that depend on the CPU.
···44assert swingSupport -> xorg != null;
4546let
47+ abortArch = throw "Unsupported system: ${stdenv.system}";
4849 /**
50 * The JRE libraries are in directories that depend on the CPU.
+1-1
pkgs/development/libraries/bootil/default.nix
···28 platform =
29 if stdenv.isLinux then "linux"
30 else if stdenv.isDarwin then "macosx"
31- else abort "unrecognized platform";
3233 buildInputs = [ premake4 ];
34
···28 platform =
29 if stdenv.isLinux then "linux"
30 else if stdenv.isDarwin then "macosx"
31+ else throw "unrecognized system ${stdenv.system}";
3233 buildInputs = [ premake4 ];
34
+1-1
pkgs/development/tools/misc/iozone/default.nix
···9 "macosx"
10 else if stdenv.system == "aarch64-linux" then
11 "linux-arm"
12- else abort "Platform ${stdenv.system} not yet supported.";
13in
1415stdenv.mkDerivation rec {
···9 "macosx"
10 else if stdenv.system == "aarch64-linux" then
11 "linux-arm"
12+ else throw "Platform ${stdenv.system} not yet supported.";
13in
1415stdenv.mkDerivation rec {
···3let
4 platform =
5 if lib.elem stdenv.system lib.platforms.unix then "unix"
6- else abort "Unknown platform for NetHack";
7 unixHint =
8 if stdenv.isLinux then "linux"
9 else if stdenv.isDarwin then "macosx10.10"
···3let
4 platform =
5 if lib.elem stdenv.system lib.platforms.unix then "unix"
6+ else throw "Unknown platform for NetHack: ${stdenv.system}";
7 unixHint =
8 if stdenv.isLinux then "linux"
9 else if stdenv.isDarwin then "macosx10.10"
···9let arch =
10 if stdenv.system == "x86_64-linux" then "64"
11 else if stdenv.system == "i686-linux" then "32"
12- else abort "Unsupported architecture";
1314in stdenv.mkDerivation rec {
15 name = "cnijfilter-${version}";
···9let arch =
10 if stdenv.system == "x86_64-linux" then "64"
11 else if stdenv.system == "i686-linux" then "32"
12+ else throw "Unsupported system ${stdenv.system}";
1314in stdenv.mkDerivation rec {
15 name = "cnijfilter-${version}";
+1-1
pkgs/misc/cups/drivers/kyocera/default.nix
···4 platform =
5 if stdenv.system == "x86_64-linux" then "64bit"
6 else if stdenv.system == "i686-linux" then "32bit"
7- else abort "Unsupported platform";
89 libPath = lib.makeLibraryPath [ cups ];
10in
···4 platform =
5 if stdenv.system == "x86_64-linux" then "64bit"
6 else if stdenv.system == "i686-linux" then "32bit"
7+ else throw "Unsupported system: ${stdenv.system}";
89 libPath = lib.makeLibraryPath [ cups ];
10in
+1-1
pkgs/misc/drivers/sundtek/default.nix
···9 if isx86_64 then "64bit"
10 else
11 if isi686 then "32bit"
12- else abort "${system} not considered in build derivation. Might still be supported.";
1314in
15 stdenv.mkDerivation {
···9 if isx86_64 then "64bit"
10 else
11 if isi686 then "32bit"
12+ else throw "${system} not considered in build derivation. Might still be supported.";
1314in
15 stdenv.mkDerivation {