summary refs log blame commit diff
path: root/pkgs/common-updater/scripts.nix
blob: 655924e5f28a1a18699721e5278c40ee4542be56 (plain) (tree)
1
2
3
4
5
6
7
8
                                                                         





                                  
                    





                              
                                                                                                             


        
{ stdenv, makeWrapper, coreutils, gnused, gnugrep, diffutils, nix, git }:

stdenv.mkDerivation {
  name = "common-updater-scripts";

  buildInputs = [ makeWrapper ];

  dontUnpack = true;

  installPhase = ''
    mkdir -p $out/bin
    cp ${./scripts}/* $out/bin

    for f in $out/bin/*; do
      wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gnused gnugrep nix diffutils git ]}
    done
  '';
}