Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
nix,
|
|
nix-prefetch-git,
|
|
nixpkgs-review,
|
|
python3Packages,
|
|
nix-update,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "nix-update";
|
|
version = "1.13.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "nix-update";
|
|
tag = version;
|
|
hash = "sha256-b/Ymvz4Un67j7UulzBJtmKrwcchpEE/si/QOn/m8m80=";
|
|
};
|
|
|
|
build-system = [ 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 { inherit nix-update; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Swiss-knife for updating nix packages";
|
|
homepage = "https://github.com/Mic92/nix-update/";
|
|
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
figsoda
|
|
mic92
|
|
];
|
|
mainProgram = "nix-update";
|
|
};
|
|
}
|