nix-update-source: switch to pname, version

This commit is contained in:
Sandro Jäckel 2020-12-03 11:15:10 +01:00
parent c0a87f4f58
commit de499540ae
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,14 +1,16 @@
{ lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts { lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts, runtimeShell }:
, runtimeShell }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "nix-update-source";
version = "0.6.3"; version = "0.6.3";
name = "nix-update-source-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "timbertson"; owner = "timbertson";
repo = "nix-update-source"; repo = "nix-update-source";
rev = "version-0.6.3"; rev = "version-${version}";
sha256 = "157wvv9vnaszzwbj68jpdc0imcm1hdab3z760bx2axbsgfpqqilz"; sha256 = "157wvv9vnaszzwbj68jpdc0imcm1hdab3z760bx2axbsgfpqqilz";
}; };
propagatedBuildInputs = [ nix-prefetch-scripts ]; propagatedBuildInputs = [ nix-prefetch-scripts ];
passthru = { passthru = {
# NOTE: `fetch` should not be used within nixpkgs because it # NOTE: `fetch` should not be used within nixpkgs because it
@ -28,6 +30,7 @@ python3Packages.buildPythonApplication rec {
inherit src; inherit src;
overrideSrc = drv: lib.overrideDerivation drv (orig: { inherit src; }); overrideSrc = drv: lib.overrideDerivation drv (orig: { inherit src; });
}; };
updateScript = '' updateScript = ''
#!${runtimeShell} #!${runtimeShell}
set -e set -e
@ -43,6 +46,7 @@ python3Packages.buildPythonApplication rec {
--modify-nix default.nix --modify-nix default.nix
''; '';
}; };
meta = { meta = {
description = "Utility to automate updating of nix derivation sources"; description = "Utility to automate updating of nix derivation sources";
maintainers = with lib.maintainers; [ timbertson ]; maintainers = with lib.maintainers; [ timbertson ];