mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-28 01:59:38 +00:00
factorio: use throw
instead of abort
Otherwise if you try to listing all available packages, you will get a hard error on platforms not supported by this package. Consequently the tarball job was broken.
This commit is contained in:
parent
2ae7e952b2
commit
f9ea527a02
@ -26,7 +26,7 @@ let
|
|||||||
demo = bdist { };
|
demo = bdist { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
actual = binDists.${stdenv.system}.${releaseType};
|
actual = binDists.${stdenv.system}.${releaseType} or throw "Factorio: unsupported platform";
|
||||||
|
|
||||||
bdistForArch = arch: { sha256 ? null
|
bdistForArch = arch: { sha256 ? null
|
||||||
, version ? "0.15.34"
|
, version ? "0.15.34"
|
||||||
@ -34,7 +34,7 @@ let
|
|||||||
, nameMut ? x: x
|
, nameMut ? x: x
|
||||||
}:
|
}:
|
||||||
if sha256 == null then
|
if sha256 == null then
|
||||||
abort "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
|
throw "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
|
||||||
else {
|
else {
|
||||||
inherit version arch;
|
inherit version arch;
|
||||||
src = fetcher {
|
src = fetcher {
|
||||||
|
Loading…
Reference in New Issue
Block a user