lol

Merge pull request #235767 from figsoda/planus

authored by

figsoda and committed by
GitHub
82801fe3 2d8194c7

+40
+38
pkgs/development/tools/misc/planus/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchCrate 4 + , installShellFiles 5 + , stdenv 6 + }: 7 + 8 + rustPlatform.buildRustPackage rec { 9 + pname = "planus"; 10 + version = "0.4.0"; 11 + 12 + src = fetchCrate { 13 + pname = "planus-cli"; 14 + inherit version; 15 + hash = "sha256-KpX4KSA2MjfRS8M0WVYpY4hoSvOOB7MUz7YKZwEGqj8="; 16 + }; 17 + 18 + cargoHash = "sha256-yT/ZK5GG0rXpiaCQlQclK2iY8BXhhmiW/UDX9aL8wBQ="; 19 + 20 + nativeBuildInputs = [ 21 + installShellFiles 22 + ]; 23 + 24 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 25 + installShellCompletion --cmd planus \ 26 + --bash <($out/bin/planus generate-completions bash) \ 27 + --fish <($out/bin/planus generate-completions fish) \ 28 + --zsh <($out/bin/planus generate-completions zsh) 29 + ''; 30 + 31 + meta = with lib; { 32 + description = "An alternative compiler for flatbuffers"; 33 + homepage = "https://github.com/planus-org/planus"; 34 + changelog = "https://github.com/planus-org/planus/blob/v${version}/CHANGELOG.md"; 35 + license = with licenses; [ asl20 mit ]; 36 + maintainers = with maintainers; [ figsoda ]; 37 + }; 38 + }
+2
pkgs/top-level/all-packages.nix
··· 19059 19059 19060 19060 picotool = callPackage ../development/tools/picotool { }; 19061 19061 19062 + planus = callPackage ../development/tools/misc/planus { }; 19063 + 19062 19064 pmccabe = callPackage ../development/tools/misc/pmccabe { }; 19063 19065 19064 19066 pkgconf-unwrapped = callPackage ../development/tools/misc/pkgconf { };