From e95dba2a4b35a8550a2d5320f00c90a11a126c0a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 13 Sep 2016 04:13:51 +0200 Subject: customized factorio fetch --- ymir/factorio.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ymir/factorio.nix') diff --git a/ymir/factorio.nix b/ymir/factorio.nix index 0379c452..b6a3e149 100644 --- a/ymir/factorio.nix +++ b/ymir/factorio.nix @@ -6,7 +6,7 @@ let allOptionalMods = false; }; modPortalDrv = { id, name, version, sha256, deps ? [], optionalDeps ? [], recommendedDeps ? [] }: modDrv { - src = pkgs.fetchurl { + src = factorio-fetch { url = ''https://mods.factorio.com/api/downloads/data/mods/${id}_${version}.zip''; inherit sha256; }; @@ -86,5 +86,6 @@ in { factorio-mkModDirDrv = pkgs.factorio-utils.mkModDirDrv; factorio = pkgs.callPackage ../customized/factorio.nix { releaseType = "alpha"; }; factorio-headless = pkgs.callPackage ../customized/factorio.nix { releaseType = "headless"; }; + factorio-fetch = pkgs.callPackage customized/factorio-fetch.nix {}; }; } -- cgit v1.2.3