mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
0105058698
You can now optionally invoke update-source-versions with: * --system flag changing the host platform, to be passed dirrectly to Nix commands. This is useful for binary packages which have different sources for each platform. * --file flag allowing to change the file to be modified. This is useful for packages that offer multiple variants, listed in a different file than the derivation itself; e.g. packages.nix of Sublime Text 3. * --version-key, which is now a keyword flag instead of a positional argument.
19 lines
423 B
Nix
19 lines
423 B
Nix
{ 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
|
|
'';
|
|
}
|