nux: refactor
This commit is contained in:
parent
22940300fe
commit
9dc1574013
1 changed files with 13 additions and 10 deletions
|
@ -5,31 +5,34 @@
|
|||
, installShellFiles
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
let
|
||||
pname = "nux";
|
||||
version = "0.1.4";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NuxPackage";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
|
||||
hash = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
|
||||
cargoHash = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
|
||||
|
||||
preFixup = ''
|
||||
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
|
||||
|
||||
'';
|
||||
nativeBuildInputs = [ asciidoctor installShellFiles ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A wrapper over the nix cli";
|
||||
meta = {
|
||||
homepage = "https://github.com/NuxPackage/nux";
|
||||
license = with licenses; [ gpl3 ];
|
||||
maintainers = with maintainers; [ drzoidberg ];
|
||||
description = "A wrapper over the nix cli";
|
||||
license = with lib.licenses; [ gpl3Plus ];
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue