lol

cocogitto: refactor to use libgit2

+3 -6
+3 -6
pkgs/development/tools/cocogitto/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, git }: 1 + { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, libgit2 }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "cocogitto"; ··· 17 17 # and might be failing to create the test repository it works in. 18 18 doCheck = false; 19 19 20 - nativeBuildInputs = [ installShellFiles makeWrapper ]; 20 + nativeBuildInputs = [ installShellFiles ]; 21 21 22 - buildInputs = lib.optional stdenv.isDarwin Security; 22 + buildInputs = [ libgit2 ] ++ lib.optional stdenv.isDarwin Security; 23 23 24 24 postInstall = '' 25 25 installShellCompletion --cmd cog \ 26 26 --bash <($out/bin/cog generate-completions bash) \ 27 27 --fish <($out/bin/cog generate-completions fish) \ 28 28 --zsh <($out/bin/cog generate-completions zsh) 29 - 30 - wrapProgram $out/bin/cog \ 31 - --prefix PATH : "${lib.makeBinPath [ git ]}" 32 29 ''; 33 30 34 31 meta = with lib; {