mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
65543d1031
Fix issues reported by shellcheck and few other style issues. Though we need to ignore $systemArg complaints because Nix does not support passing --system as a single argument.
19 lines
409 B
Nix
19 lines
409 B
Nix
{ 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
|
|
'';
|
|
}
|