8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 hash = "sha256-hzlrhawHQOM12pYAHqmkk+PPI/3tJx8rFFQ9+znv9c8=";
19 cargoHash = "sha256-yHtKgQZlKJ/vmecjzMHkmA/0sbiNJdP0zoUSIowWttQ=";
21 nativeBuildInputs = [ installShellFiles ];
23 buildFeatures = [ "go" ];
25 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
26 installShellCompletion --cmd typeshare \
27 --bash <($out/bin/typeshare completions bash) \
28 --fish <($out/bin/typeshare completions fish) \
29 --zsh <($out/bin/typeshare completions zsh)
33 description = "Command Line Tool for generating language files with typeshare";
34 mainProgram = "typeshare";
35 homepage = "https://github.com/1password/typeshare";
36 changelog = "https://github.com/1password/typeshare/blob/v${version}/CHANGELOG.md";
37 license = with licenses; [ asl20 /* or */ mit ];
38 maintainers = with maintainers; [ figsoda ];