mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
nix-update-source: 0.6.3 -> 0.7.0 (#340228)
This commit is contained in:
commit
3764d70f8f
@ -2,13 +2,13 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "nix-update-source";
|
||||
version = "0.6.3";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
hash = "sha256-+49Yb+rZ3CzFnwEpwj5xrcMUVBiYOJtCk9YeZ15IM/U=";
|
||||
owner = "timbertson";
|
||||
repo = "nix-update-source";
|
||||
rev = "version-${version}";
|
||||
sha256 = "157wvv9vnaszzwbj68jpdc0imcm1hdab3z760bx2axbsgfpqqilz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ nix-prefetch-scripts ];
|
||||
@ -34,20 +34,25 @@ python3Packages.buildPythonApplication rec {
|
||||
overrideSrc = drv: lib.overrideDerivation drv (orig: { inherit src; });
|
||||
};
|
||||
|
||||
updateScript = ''
|
||||
#!${runtimeShell}
|
||||
set -e
|
||||
echo
|
||||
cd ${toString ./.}
|
||||
${pkgs.nix-update-source}/bin/nix-update-source \
|
||||
--prompt version \
|
||||
--replace-attr version \
|
||||
--set owner timbertson \
|
||||
--set repo nix-update-source \
|
||||
--set type fetchFromGitHub \
|
||||
--set rev 'version-{version}' \
|
||||
--modify-nix default.nix
|
||||
'';
|
||||
|
||||
updateScript = [
|
||||
runtimeShell
|
||||
"-c"
|
||||
''
|
||||
set -e
|
||||
echo
|
||||
cd ${toString ./.}
|
||||
${pkgs.nix-update-source}/bin/nix-update-source \
|
||||
--prompt version \
|
||||
--replace-attr version \
|
||||
--set owner timbertson \
|
||||
--set repo nix-update-source \
|
||||
--set type fetchFromGitHub \
|
||||
--set rev 'version-{version}' \
|
||||
--nix-literal rev 'version-''${version}'\
|
||||
--modify-nix default.nix
|
||||
''
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user