2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
2023-03-24 00:07:29 +00:00
|
|
|
, python3
|
2020-05-29 06:06:01 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, nix
|
2023-03-24 00:07:29 +00:00
|
|
|
, nix-prefetch-git
|
2021-04-22 02:08:21 +00:00
|
|
|
, nixpkgs-fmt
|
|
|
|
, nixpkgs-review
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
pname = "nix-update";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
pyproject = true;
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-C7ke51QlBcTR98ovQi5NcxToEPP6s9gqnxWO1eBw/sI=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
makeWrapperArgs = [
|
2023-03-24 00:07:29 +00:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch-git nixpkgs-fmt nixpkgs-review ])
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
$out/bin/nix-update --help >/dev/null
|
2020-05-29 06:06:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Swiss-knife for updating nix packages";
|
|
|
|
inherit (src.meta) homepage;
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.mit;
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ figsoda mic92 zowoq ];
|
2020-05-29 06:06:01 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|