flake.nix: support list-type updateScripts (e.g. `nix-update-script {}`)
This commit is contained in:
parent
bc9bacb08f
commit
387b49a8b5
|
@ -271,7 +271,8 @@
|
|||
program = let
|
||||
pkg = pkgs.lib.getAttrFromPath attrPath sanePkgs;
|
||||
strAttrPath = pkgs.lib.concatStringsSep "." attrPath;
|
||||
command = pkgs.lib.escapeShellArgs pkg.updateScript.command;
|
||||
commandArgv = pkg.updateScript.command or pkg.updateScript;
|
||||
command = pkgs.lib.escapeShellArgs commandArgv;
|
||||
in builtins.toString (pkgs.writeShellScript "update-${strAttrPath}" ''
|
||||
export UPDATE_NIX_NAME=${pkg.name}
|
||||
export UPDATE_NIX_PNAME=${pkg.pname}
|
||||
|
|
Loading…
Reference in New Issue