maintainers/scripts/update.nix: Do not store updateScripts

For update script parallelization, we have started calling builtins.toJSON
on updateScripts, which triggers evaluation of paths and therefore their copying
to Nix store. This breaks update scripts that assume that they exist in nixpkgs
like dwarf-fortress.

https://github.com/NixOS/nixpkgs/issues/61935

Let’s stringify the paths before JSONification to prevent the evaluation.
This commit is contained in:
Jan Tojnar 2019-06-02 08:09:17 +02:00
parent 4ab1c14714
commit fa1bbe69fb
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -122,7 +122,7 @@ let
packageData = package: {
name = package.name;
pname = (builtins.parseDrvName package.name).name;
updateScript = pkgs.lib.toList package.updateScript;
updateScript = map builtins.toString (pkgs.lib.toList package.updateScript);
};
in pkgs.stdenv.mkDerivation {