2020-05-20 21:52:25 +00:00
|
|
|
{ lib
|
2023-03-22 09:53:57 +00:00
|
|
|
, python3
|
2020-05-20 21:52:25 +00:00
|
|
|
, fetchFromGitHub
|
2021-11-13 23:07:38 +00:00
|
|
|
, nix
|
2023-03-22 09:53:57 +00:00
|
|
|
, nix-prefetch-git
|
2021-04-20 22:32:28 +00:00
|
|
|
, nixpkgs-fmt
|
|
|
|
, nixpkgs-review
|
2020-05-20 21:52:25 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-22 09:53:57 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-05-20 21:52:25 +00:00
|
|
|
pname = "nix-update";
|
2023-08-06 19:34:36 +00:00
|
|
|
version = "0.19.3";
|
2022-11-14 13:03:19 +00:00
|
|
|
format = "setuptools";
|
2020-05-20 21:52:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-06 19:34:36 +00:00
|
|
|
hash = "sha256-+WD+SV/L3TvksWBIg6jk+T0dUTNdp4VKONzdzVT+pac=";
|
2020-05-20 21:52:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
2023-03-22 09:53:57 +00:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch-git nixpkgs-fmt nixpkgs-review ])
|
2020-05-20 21:52:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-11-24 21:29:02 +00:00
|
|
|
$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;
|
2022-12-15 22:25:44 +00:00
|
|
|
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
2020-05-20 21:52:25 +00:00
|
|
|
license = licenses.mit;
|
2022-12-15 22:25:44 +00:00
|
|
|
maintainers = with maintainers; [ figsoda mic92 zowoq ];
|
2020-05-20 21:52:25 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|