biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / nux / default.nix
blob45bb1836260500aa181871213ac0b92e2ff2f9c5
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , asciidoctor
5 , installShellFiles
6 }:
8 let
9   pname = "nux";
10   version = "0.1.4";
12 rustPlatform.buildRustPackage {
13   inherit pname version;
15   src = fetchFromGitHub {
16     owner = "NuxPackage";
17     repo = pname;
18     rev = version;
19     hash = "sha256-k3HRaWN8/MTZRGWBxI8RRK0tcSYBbSLs3vHkUdLGTc8";
20   };
22   cargoHash = "sha256-wfUr3dcdALMEgJ6CaXhK4Gqk6xflCnov9tELA63drV4=";
24   nativeBuildInputs = [ asciidoctor installShellFiles ];
26   postInstall = ''
27     installManPage $releaseDir/build/nux-*/out/nux.1
28     installShellCompletion $releaseDir/build/nux-*/out/nux.{bash,fish}
29     installShellCompletion $releaseDir/build/nux-*/out/_nux
30   '';
32   meta = {
33     homepage = "https://github.com/NuxPackage/nux";
34     description = "Wrapper over the nix cli";
35     license = with lib.licenses; [ gpl3Plus ];
36     maintainers = [ ];
37     mainProgram = "nux";
38   };