Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
installShellFiles,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "planus";
|
|
version = "1.2.0";
|
|
|
|
src = fetchCrate {
|
|
pname = "planus-cli";
|
|
inherit version;
|
|
hash = "sha256-z1fXLXSk9xprKMCsbkvJfDB3qz9aR6Bslf517TyQ7qI=";
|
|
};
|
|
|
|
cargoHash = "sha256-igja5/FaYBrJSBc9Gw3091UorEV+UmlxPzfk5FYaWXo=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd planus \
|
|
--bash <($out/bin/planus generate-completions bash) \
|
|
--fish <($out/bin/planus generate-completions fish) \
|
|
--zsh <($out/bin/planus generate-completions zsh)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Alternative compiler for flatbuffers";
|
|
mainProgram = "planus";
|
|
homepage = "https://github.com/planus-org/planus";
|
|
changelog = "https://github.com/planus-org/planus/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
|
};
|
|
}
|