Merge pull request #88465 from zowoq/nix-update
nix-update: init at 0.1
This commit is contained in:
commit
70f6114d81
34
pkgs/tools/package-management/nix-update/default.nix
Normal file
34
pkgs/tools/package-management/nix-update/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonApplication
|
||||||
|
, fetchFromGitHub
|
||||||
|
, nix
|
||||||
|
, nix-prefetch
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "nix-update";
|
||||||
|
version = "0.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Mic92";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0mw31n7kqfr7fskkxp58b0wprxj1pj6n1zs6ymvvl548gs5rgn2s";
|
||||||
|
};
|
||||||
|
|
||||||
|
makeWrapperArgs = [
|
||||||
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix nix-prefetch ])
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
$out/bin/nix-update --help
|
||||||
|
'';
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
@ -25756,6 +25756,8 @@ in
|
|||||||
|
|
||||||
nix-query-tree-viewer = callPackage ../tools/nix/nix-query-tree-viewer { };
|
nix-query-tree-viewer = callPackage ../tools/nix/nix-query-tree-viewer { };
|
||||||
|
|
||||||
|
nix-update = python3Packages.callPackage ../tools/package-management/nix-update { };
|
||||||
|
|
||||||
nix-update-source = callPackage ../tools/package-management/nix-update-source {};
|
nix-update-source = callPackage ../tools/package-management/nix-update-source {};
|
||||||
|
|
||||||
nix-script = callPackage ../tools/nix/nix-script {};
|
nix-script = callPackage ../tools/nix/nix-script {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user