2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, nix
|
2020-05-29 06:06:01 +00:00
|
|
|
, nix-prefetch
|
2021-04-22 02:08:21 +00:00
|
|
|
, nixpkgs-fmt
|
|
|
|
, nixpkgs-review
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "nix-update";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.7.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-q3kC+CJ0+NRz3rqHFuJkiI4RCSAXZczqDiyfQB2CrFQ=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch nixpkgs-fmt nixpkgs-review ])
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
$out/bin/nix-update --help >/dev/null
|
2020-05-29 06:06:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Swiss-knife for updating nix packages";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mic92 zowoq ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|