Files
nixpkgs/pkgs/by-name/co/cocogitto/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
libgit2,
}:
rustPlatform.buildRustPackage rec {
pname = "cocogitto";
version = "6.3.0";
src = fetchFromGitHub {
owner = "oknozor";
repo = "cocogitto";
tag = version;
hash = "sha256-ij5vpIpqCYGNPNWPY47rWmMLEgBh+wtVmLRt11S14rE=";
};
cargoHash = "sha256-wfq1W9zjC0phPUr6SaLv8Ia5aQk/+1ujOTo0241X7AY=";
# 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 ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
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 = "Set of cli tools for the conventional commit and semver specifications";
mainProgram = "cog";
homepage = "https://github.com/oknozor/cocogitto";
license = licenses.mit;
maintainers = [ ];
};
}