tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
cocogitto: refactor to use libgit2
Joshua Gilman
3 years ago
22bb5607
ee3472f7
+3
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
cocogitto
default.nix
+3
-6
pkgs/development/tools/cocogitto/default.nix
···
1
1
-
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, git }:
1
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
20
-
nativeBuildInputs = [ installShellFiles makeWrapper ];
20
20
+
nativeBuildInputs = [ installShellFiles ];
21
21
22
22
-
buildInputs = lib.optional stdenv.isDarwin Security;
22
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
29
-
30
30
-
wrapProgram $out/bin/cog \
31
31
-
--prefix PATH : "${lib.makeBinPath [ git ]}"
32
29
'';
33
30
34
31
meta = with lib; {