2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, asciidoctor
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
let
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "nux";
|
|
|
|
version = "0.1.4";
|
2023-04-12 12:48:02 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NuxPackage";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoHash = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [ asciidoctor installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
installManPage $releaseDir/build/nux-*/out/nux.1
|
|
|
|
installShellCompletion $releaseDir/build/nux-*/out/nux.{bash,fish}
|
|
|
|
installShellCompletion $releaseDir/build/nux-*/out/_nux
|
|
|
|
'';
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/NuxPackage/nux";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Wrapper over the nix cli";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "nux";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|