mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
36 lines
870 B
Nix
36 lines
870 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|