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












                                  
                                                                                                      


        
{ 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
  '';
}