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
-
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, git }:
2
3
rustPlatform.buildRustPackage rec {
4
pname = "cocogitto";
···
17
# and might be failing to create the test repository it works in.
18
doCheck = false;
19
20
-
nativeBuildInputs = [ installShellFiles makeWrapper ];
21
22
-
buildInputs = 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
-
wrapProgram $out/bin/cog \
31
-
--prefix PATH : "${lib.makeBinPath [ git ]}"
32
'';
33
34
meta = with lib; {
···
1
+
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv, Security, makeWrapper, libgit2 }:
2
3
rustPlatform.buildRustPackage rec {
4
pname = "cocogitto";
···
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)
0
0
0
29
'';
30
31
meta = with lib; {