2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2020-11-30 08:33:03 +00:00
|
|
|
, nixFlakes
|
2020-05-29 06:06:01 +00:00
|
|
|
, nix-prefetch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "nix-update";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "0.3.2";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "1ykxr0yah7zl06igm7wiji9zx3y0xpjc37hbfhn6gnir6ssa0kqp";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
2020-11-30 08:33:03 +00:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes nix-prefetch ])
|
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;
|
|
|
|
};
|
|
|
|
}
|