forked from mirrors/nixpkgs
37 lines
773 B
Nix
37 lines
773 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, nixUnstable
|
|
, nix-prefetch
|
|
, nixpkgs-fmt
|
|
, nixpkgs-review
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "nix-update";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-D1N7ISLZJ3A8G9X5dvtCbRse5h0MRJoeZM3CHkFpqlE=";
|
|
};
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nixUnstable nix-prefetch nixpkgs-fmt nixpkgs-review ])
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|