504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, libgit2 }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cocogitto";
|
|
version = "6.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oknozor";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-iJH2uXlKsq7I94D3/Fe3pB8SzPfO0CodEk3XNdGleMk=";
|
|
};
|
|
|
|
cargoHash = "sha256-srcAUrPrrZoNUn7OeyzSRpOiEuyEizxTiEUbaNg9llE=";
|
|
|
|
# Test depend on git configuration that would likely exist in a normal user environment
|
|
# and might be failing to create the test repository it works in.
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [ libgit2 ] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd cog \
|
|
--bash <($out/bin/cog generate-completions bash) \
|
|
--fish <($out/bin/cog generate-completions fish) \
|
|
--zsh <($out/bin/cog generate-completions zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A set of cli tools for the conventional commit and semver specifications";
|
|
homepage = "https://github.com/oknozor/cocogitto";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|