1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, libgit2 }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0=";
14 cargoHash = "sha256-iS/nRfy63bgo7MeL/5jJ3Vn6S7dG49erIZ+0516YxKM=";
16 # Test depend on git configuration that would likely exist in a normal user environment
17 # and might be failing to create the test repository it works in.
20 nativeBuildInputs = [ installShellFiles ];
22 buildInputs = [ libgit2 ] ++ lib.optional stdenv.isDarwin Security;
25 installShellCompletion --cmd cog \
26 --bash <($out/bin/cog generate-completions bash) \
27 --fish <($out/bin/cog generate-completions fish) \
28 --zsh <($out/bin/cog generate-completions zsh)
32 description = "A set of cli tools for the conventional commit and semver specifications";
34 homepage = "https://github.com/oknozor/cocogitto";
35 license = licenses.mit;
36 maintainers = with maintainers; [ ];