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

35 lines
712 B
Nix
Raw Normal View History

2020-05-20 21:52:25 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
, nixFlakes
2020-05-20 21:52:25 +00:00
, nix-prefetch
}:
buildPythonApplication rec {
pname = "nix-update";
2021-01-09 16:02:55 +00:00
version = "0.3.2";
2020-05-20 21:52:25 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
2021-01-09 16:02:55 +00:00
sha256 = "1ykxr0yah7zl06igm7wiji9zx3y0xpjc37hbfhn6gnir6ssa0kqp";
2020-05-20 21:52:25 +00:00
};
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes nix-prefetch ])
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;
license = licenses.mit;
maintainers = with maintainers; [ mic92 zowoq ];
platforms = platforms.all;
};
}