diff options
author | HI <jakob@example.com> | 2021-11-22 18:15:31 +0100 |
---|---|---|
committer | Jakob <jakob.n.neufeld@gmail.com> | 2021-11-26 01:01:39 +0100 |
commit | c9a4c5e03289d4221933b51cd05a847845829bdc (patch) | |
tree | a0e93e737320d8515a6279c619689c8fd0ecb0e7 /pkgs/tools/misc | |
parent | 8f135db3d4c2c9c0d37df34160a11e373ee250ad (diff) |
nux: init at 0.1.4
nux: init at 0.1.4
Fixed blah vlah
nux: init at 0.1.4
nix init at 0.1.4
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/nux/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nux/default.nix b/pkgs/tools/misc/nux/default.nix new file mode 100644 index 000000000000..d3f26d850e5f --- /dev/null +++ b/pkgs/tools/misc/nux/default.nix @@ -0,0 +1,35 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, asciidoctor +, installShellFiles +}: + +rustPlatform.buildRustPackage rec { + pname = "nux"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "NuxPackage"; + repo = pname; + rev = version; + sha256 = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8"; + }; + + cargoSha256 = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4="; + + preFixup = '' + installManPage $releaseDir/build/nux-*/out/nux.1 + installShellCompletion $releaseDir/build/nux-*/out/nux.{bash,fish} + installShellCompletion $releaseDir/build/nux-*/out/_nux + + ''; + nativeBuildInputs = [ asciidoctor installShellFiles ]; + + meta = with lib; { + description = "A wrapper over the nix cli"; + homepage = "https://github.com/NuxPackage/nux"; + license = with licenses; [ gpl3 ]; + maintainers = with maintainers; [ drzoidberg ]; + }; +} |