diff options
Diffstat (limited to 'nixpkgs/pkgs/common-updater/scripts.nix')
-rw-r--r-- | nixpkgs/pkgs/common-updater/scripts.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/common-updater/scripts.nix b/nixpkgs/pkgs/common-updater/scripts.nix new file mode 100644 index 000000000000..b260c67ca7c6 --- /dev/null +++ b/nixpkgs/pkgs/common-updater/scripts.nix @@ -0,0 +1,18 @@ +{ stdenv, makeWrapper, coreutils, gawk, gnused, diffutils, nix }: + +stdenv.mkDerivation { + name = "common-updater-scripts"; + + buildInputs = [ makeWrapper ]; + + unpackPhase = "true"; + + installPhase = '' + mkdir -p $out/bin + cp ${./scripts}/* $out/bin + + for f in $out/bin/*; do + wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gawk gnused nix diffutils ]} + done + ''; +} |