summary refs log blame commit diff
path: root/pkgs/common-updater/scripts.nix
blob: 8a122b74b23c6cb5e343404ecb8afbc1da8da981 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                                                                          












                                  
                                                                                                              


        
{ stdenv, makeWrapper, coreutils, gawk, gnused, gnugrep, 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 gnugrep nix diffutils ]}
    done
  '';
}