mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
f19ef08998
So that nix-update-script can refer to nix-update itself.
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
nix,
|
|
nix-prefetch-git,
|
|
nixpkgs-review,
|
|
python3Packages,
|
|
}:
|
|
|
|
let
|
|
self = python3Packages.buildPythonApplication {
|
|
pname = "nix-update";
|
|
version = "1.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "nix-update";
|
|
rev = "refs/tags/${self.version}";
|
|
hash = "sha256-JXls4EgMDAWtd736nXS2lYTUv9QIjRpkCTimxNtMN7Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3Packages.setuptools ];
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
(lib.makeBinPath [
|
|
nix
|
|
nix-prefetch-git
|
|
nixpkgs-review
|
|
])
|
|
];
|
|
|
|
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
|