git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitf9ea527a02773b33967bde2fe9675fb4d4d3c2e9 authorVladimír Čunát <vcunat@gmail.com> dateThu 7 Sep 2017, 19:12 (9 years ago) parent2ae7e95
1 file changed+2−2
pkgs/games/factorio/default.nix+2−2
pkgs/games/factorio/default.nix+2−2
@@ -26,7 +26,7 @@ let
2626 demo = bdist { };
2727 };
2828 };
29− actual = binDists.${stdenv.system}.${releaseType};
29+ actual = binDists.${stdenv.system}.${releaseType} or throw "Factorio: unsupported platform";
3030
3131 bdistForArch = arch: { sha256 ? null
3232 , version ? "0.15.34"
@@ -34,7 +34,7 @@ let
3434 , nameMut ? x: x
3535 }:
3636 if sha256 == null then
37− abort "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
37+ throw "Factorio ${releaseType}-${arch.inTar} binaries are not (and were never?) available to download"
3838 else {
3939 inherit version arch;
4040 src = fetcher {