a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
37 lines
842 B
Nix
37 lines
842 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, nix
|
|
, nixpkgs-fmt
|
|
, nixpkgs-review
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "nix-update";
|
|
version = "0.12.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-7Co8mKG3eyM5WmGoAskyYleeutH4/kygSkvFpSg7Y04=";
|
|
};
|
|
|
|
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;
|
|
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda mic92 zowoq ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|