nix-update: get rid of rec
So that nix-update-script can refer to nix-update itself.
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
let
|
||||
self = python3Packages.buildPythonApplication {
|
||||
pname = "nix-update";
|
||||
version = "1.5.1";
|
||||
pyproject = true;
|
||||
@@ -16,7 +17,7 @@ python3Packages.buildPythonApplication rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mic92";
|
||||
repo = "nix-update";
|
||||
rev = "refs/tags/${version}";
|
||||
rev = "refs/tags/${self.version}";
|
||||
hash = "sha256-JXls4EgMDAWtd736nXS2lYTUv9QIjRpkCTimxNtMN7Q=";
|
||||
};
|
||||
|
||||
@@ -42,13 +43,13 @@ python3Packages.buildPythonApplication rec {
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
nix-update-script = callPackage ./nix-update-script.nix { };
|
||||
nix-update-script = callPackage ./nix-update-script.nix { nix-update = self; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/Mic92/nix-update/";
|
||||
description = "Swiss-knife for updating nix packages";
|
||||
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
||||
changelog = "https://github.com/Mic92/nix-update/releases/tag/${self.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
figsoda
|
||||
@@ -56,4 +57,6 @@ python3Packages.buildPythonApplication rec {
|
||||
];
|
||||
mainProgram = "nix-update";
|
||||
};
|
||||
}
|
||||
};
|
||||
in
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user