depot/third_party/nixpkgs/pkgs/tools/misc/nux/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

38 lines
888 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, asciidoctor
, installShellFiles
}:
let
pname = "nux";
version = "0.1.4";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "NuxPackage";
repo = pname;
rev = version;
hash = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
};
cargoHash = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
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
'';
meta = {
homepage = "https://github.com/NuxPackage/nux";
description = "A wrapper over the nix cli";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ ];
};
}