nix-update-source: 0.6.3 -> 0.7.0 (#340228)

This commit is contained in:
Adam C. Stephens 2024-09-07 08:20:46 -04:00 committed by GitHub
commit 3764d70f8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {