diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-03-02 22:11:54 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-03-02 23:03:04 +0100 |
commit | 01050586980a81e525428eb9e571a8b040f96b26 (patch) | |
tree | c93dc06c936d4c4c01c33da0fc03298054207a71 /pkgs/common-updater/scripts.nix | |
parent | 025c2abd08de80609b961c8c8176a2be390a6d88 (diff) | |
download | nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar.gz nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar.bz2 nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar.lz nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar.xz nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.tar.zst nixpkgs-01050586980a81e525428eb9e571a8b040f96b26.zip |
common-updater-scripts: Add file and system flags
You can now optionally invoke update-source-versions with: * --system flag changing the host platform, to be passed dirrectly to Nix commands. This is useful for binary packages which have different sources for each platform. * --file flag allowing to change the file to be modified. This is useful for packages that offer multiple variants, listed in a different file than the derivation itself; e.g. packages.nix of Sublime Text 3. * --version-key, which is now a keyword flag instead of a positional argument.
Diffstat (limited to 'pkgs/common-updater/scripts.nix')
-rw-r--r-- | pkgs/common-updater/scripts.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/common-updater/scripts.nix b/pkgs/common-updater/scripts.nix index b260c67ca7c..8a122b74b23 100644 --- a/pkgs/common-updater/scripts.nix +++ b/pkgs/common-updater/scripts.nix @@ -1,4 +1,4 @@ -{ stdenv, makeWrapper, coreutils, gawk, gnused, diffutils, nix }: +{ stdenv, makeWrapper, coreutils, gawk, gnused, gnugrep, diffutils, nix }: stdenv.mkDerivation { name = "common-updater-scripts"; @@ -12,7 +12,7 @@ stdenv.mkDerivation { cp ${./scripts}/* $out/bin for f in $out/bin/*; do - wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused nix diffutils ]} + wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused gnugrep nix diffutils ]} done ''; } |