depot/third_party/nixpkgs/pkgs/tools/package-management/nix-update/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

36 lines
773 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, nixUnstable
, nix-prefetch
, nixpkgs-fmt
, nixpkgs-review
}:
buildPythonApplication rec {
pname = "nix-update";
version = "0.4.0";
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
sha256 = "sha256-n3YuNypKFaBtO5Fhf7Z3Wgh0+WH5bQWR0W0uHCYKtuY=";
};
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;
};
}