depot/third_party/nixpkgs/pkgs/tools/package-management/nix-update/default.nix
Default email c5ce5db644 Project import generated by Copybara.
GitOrigin-RevId: 84917aa00bf23c88e5874c683abe05edb0ba4078
2020-12-26 04:20:00 +00:00

34 lines
709 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, nixFlakes
, nix-prefetch
}:
buildPythonApplication rec {
pname = "nix-update";
version = "0.3";
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
sha256 = "sha256-cMllWFPK6pwqrocjkZKjnELIdtW4tj5Yu6AMw7Zd2JU=";
};
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes nix-prefetch ])
];
checkPhase = ''
$out/bin/nix-update --help >/dev/null
'';
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;
};
}