3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nix-update/default.nix

37 lines
757 B
Nix
Raw Normal View History

2020-05-20 22:52:25 +01:00
{ lib
, buildPythonApplication
, fetchFromGitHub
2021-11-13 23:07:38 +00:00
, nix
2020-05-20 22:52:25 +01:00
, nix-prefetch
, nixpkgs-fmt
, nixpkgs-review
2020-05-20 22:52:25 +01:00
}:
buildPythonApplication rec {
pname = "nix-update";
version = "0.5.0";
2020-05-20 22:52:25 +01:00
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
sha256 = "sha256-D1N7ISLZJ3A8G9X5dvtCbRse5h0MRJoeZM3CHkFpqlE=";
2020-05-20 22:52:25 +01:00
};
makeWrapperArgs = [
2021-11-13 23:07:38 +00:00
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch nixpkgs-fmt nixpkgs-review ])
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;
};
}