nixpkgs/pkgs/tools/package-management/nix-update/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
874 B
Nix
Raw Normal View History

2020-05-20 21:52:25 +00:00
{ lib
, python3
2020-05-20 21:52:25 +00:00
, fetchFromGitHub
2021-11-13 23:07:38 +00:00
, nix
, nix-prefetch-git
, nixpkgs-fmt
, nixpkgs-review
2020-05-20 21:52:25 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2020-05-20 21:52:25 +00:00
pname = "nix-update";
version = "0.19.3";
format = "setuptools";
2020-05-20 21:52:25 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
hash = "sha256-+WD+SV/L3TvksWBIg6jk+T0dUTNdp4VKONzdzVT+pac=";
2020-05-20 21:52:25 +00:00
};
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch-git nixpkgs-fmt nixpkgs-review ])
2020-05-20 21:52:25 +00:00
];
checkPhase = ''
$out/bin/nix-update --help >/dev/null
2020-05-20 21:52:25 +00:00
'';
meta = with lib; {
description = "Swiss-knife for updating nix packages";
inherit (src.meta) homepage;
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
2020-05-20 21:52:25 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda mic92 zowoq ];
2020-05-20 21:52:25 +00:00
platforms = platforms.all;
};
}