nix-update: get rid of rec
So that nix-update-script can refer to nix-update itself.
This commit is contained in:
@@ -8,52 +8,55 @@
|
|||||||
python3Packages,
|
python3Packages,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
let
|
||||||
pname = "nix-update";
|
self = python3Packages.buildPythonApplication {
|
||||||
version = "1.5.1";
|
pname = "nix-update";
|
||||||
pyproject = true;
|
version = "1.5.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Mic92";
|
owner = "Mic92";
|
||||||
repo = "nix-update";
|
repo = "nix-update";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${self.version}";
|
||||||
hash = "sha256-JXls4EgMDAWtd736nXS2lYTUv9QIjRpkCTimxNtMN7Q=";
|
hash = "sha256-JXls4EgMDAWtd736nXS2lYTUv9QIjRpkCTimxNtMN7Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python3Packages.setuptools ];
|
nativeBuildInputs = [ python3Packages.setuptools ];
|
||||||
|
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
"--prefix"
|
"--prefix"
|
||||||
"PATH"
|
"PATH"
|
||||||
":"
|
":"
|
||||||
(lib.makeBinPath [
|
(lib.makeBinPath [
|
||||||
nix
|
nix
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
])
|
])
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
|
|
||||||
$out/bin/nix-update --help >/dev/null
|
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
nix-update-script = callPackage ./nix-update-script.nix { };
|
|
||||||
};
|
|
||||||
|
|
||||||
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}";
|
|
||||||
license = lib.licenses.mit;
|
|
||||||
maintainers = with lib.maintainers; [
|
|
||||||
figsoda
|
|
||||||
mic92
|
|
||||||
];
|
];
|
||||||
mainProgram = "nix-update";
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
$out/bin/nix-update --help >/dev/null
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
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/${self.version}";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
figsoda
|
||||||
|
mic92
|
||||||
|
];
|
||||||
|
mainProgram = "nix-update";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
in
|
||||||
|
self
|
||||||
|
|||||||
Reference in New Issue
Block a user