10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-VorWk7E+I1hU8Hc+WF47+V483E/xPjf7Glqp7iA1t5g=";
21 cargoHash = "sha256-pjCLlti/6CITFLN3UxYujP/K6j2bSAu1OS1zw3YiSFM=";
23 # Test depend on git configuration that would likely exist in a normal user environment
24 # and might be failing to create the test repository it works in.
27 nativeBuildInputs = [ installShellFiles ];
29 buildInputs = [ libgit2 ];
31 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
32 installShellCompletion --cmd cog \
33 --bash <($out/bin/cog generate-completions bash) \
34 --fish <($out/bin/cog generate-completions fish) \
35 --zsh <($out/bin/cog generate-completions zsh)
39 description = "Set of cli tools for the conventional commit and semver specifications";
41 homepage = "https://github.com/oknozor/cocogitto";
42 license = licenses.mit;