summary refs log tree commit diff
path: root/pkgs/common-updater/scripts.nix
blob: ec897914b6bdd5fc6df6e7ea0bb9ac5001949073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ stdenv, makeWrapper, coreutils, gnused, gnugrep, diffutils, nix }:

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 ]}
    done
  '';
}