7d542a9f98
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
36 lines
755 B
Nix
36 lines
755 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, nix
|
|
, nixpkgs-fmt
|
|
, nixpkgs-review
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "nix-update";
|
|
version = "0.10.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-BChN92gZ1Ga7hIPWmdzkrg31S0iqWwXGkWb3mmRugY8=";
|
|
};
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix 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;
|
|
};
|
|
}
|