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

35 lines
710 B
Nix
Raw Normal View History

2020-05-20 22:52:25 +01:00
{ lib
, buildPythonApplication
, fetchFromGitHub
, nixFlakes
2020-05-20 22:52:25 +01:00
, nix-prefetch
}:
buildPythonApplication rec {
pname = "nix-update";
version = "0.2";
2020-05-20 22:52:25 +01:00
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
sha256 = "12fsxy2rv2dgk8l10ymp10j01jkcbn9w0fv5iyb5db85q4xsrsm5";
2020-05-20 22:52:25 +01:00
};
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes nix-prefetch ])
2020-05-20 22:52:25 +01:00
];
checkPhase = ''
$out/bin/nix-update --help >/dev/null
2020-05-20 22:52:25 +01: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;
};
}