nixpkgs/pkgs/tools/misc/nux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
888 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, rustPlatform
, asciidoctor
, installShellFiles
}:
2023-04-07 03:56:08 +00:00
let
pname = "nux";
version = "0.1.4";
2023-04-07 03:56:08 +00:00
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "NuxPackage";
repo = pname;
rev = version;
2023-04-07 03:56:08 +00:00
hash = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
};
2023-04-07 03:56:08 +00:00
cargoHash = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
2023-04-07 03:56:08 +00:00
nativeBuildInputs = [ asciidoctor installShellFiles ];
postInstall = ''
installManPage $releaseDir/build/nux-*/out/nux.1
installShellCompletion $releaseDir/build/nux-*/out/nux.{bash,fish}
installShellCompletion $releaseDir/build/nux-*/out/_nux
'';
2023-04-07 03:56:08 +00:00
meta = {
homepage = "https://github.com/NuxPackage/nux";
2023-04-07 03:56:08 +00:00
description = "A wrapper over the nix cli";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ ];
};
}