8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "stepchowfun";
16 hash = "sha256-y7PWTzD9+rkC4wZYhecmDTa3AoWl4Tgh7QXbSK4Qq5Q=";
19 cargoHash = "sha256-U6dRk8fqhxxMbu283jvkjGMjbIOYqy9jN64M2VmdZ/g=";
29 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
30 installShellCompletion --cmd typical \
31 --bash <($out/bin/typical shell-completion bash) \
32 --fish <($out/bin/typical shell-completion fish) \
33 --zsh <($out/bin/typical shell-completion zsh)
37 description = "Data interchange with algebraic data types";
38 mainProgram = "typical";
39 homepage = "https://github.com/stepchowfun/typical";
40 changelog = "https://github.com/stepchowfun/typical/blob/${src.rev}/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = with maintainers; [ figsoda ];