nixpkgs/pkgs/tools/package-management/nix-update/default.nix
Christina Sørensen 9b374ca016 nix-update: 0.19.3 -> 1.0.0
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-30 11:50:10 +01:00

42 lines
926 B
Nix

{ lib
, python3
, fetchFromGitHub
, nix
, nix-prefetch-git
, nixpkgs-fmt
, nixpkgs-review
}:
python3.pkgs.buildPythonApplication rec {
pname = "nix-update";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
hash = "sha256-C7ke51QlBcTR98ovQi5NcxToEPP6s9gqnxWO1eBw/sI=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
];
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch-git 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;
};
}