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";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "0.2";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "12fsxy2rv2dgk8l10ymp10j01jkcbn9w0fv5iyb5db85q4xsrsm5";
|
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;
|
|
|
|
};
|
|
|
|
}
|