Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 38 lines 1.2 kB view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, libgit2 }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cocogitto"; 5 version = "6.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "oknozor"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-yGwGWXME9ZjFJk/3pVDRTa1phG6kd8+YhXe/MxOEdF0="; 12 }; 13 14 cargoHash = "sha256-iS/nRfy63bgo7MeL/5jJ3Vn6S7dG49erIZ+0516YxKM="; 15 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. 18 doCheck = false; 19 20 nativeBuildInputs = [ installShellFiles ]; 21 22 buildInputs = [ libgit2 ] ++ lib.optional stdenv.isDarwin Security; 23 24 postInstall = '' 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) 29 ''; 30 31 meta = with lib; { 32 description = "Set of cli tools for the conventional commit and semver specifications"; 33 mainProgram = "cog"; 34 homepage = "https://github.com/oknozor/cocogitto"; 35 license = licenses.mit; 36 maintainers = [ ]; 37 }; 38}