git-series: use nixpkgs libgit2

This replaces the vendored copy from libgit2-sys.
This commit is contained in:
edef 2019-10-17 07:08:32 +00:00
parent 2bc9e6cb37
commit fca52043a5

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform, openssl, cmake, perl, pkgconfig, zlib, curl }:
{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform, openssl, cmake, perl, pkgconfig, zlib, curl, libgit2 }:
with rustPlatform;
@ -27,8 +27,9 @@ buildRustPackage rec {
})
];
LIBGIT2_SYS_USE_PKG_CONFIG = true;
nativeBuildInputs = [ cmake pkgconfig perl ];
buildInputs = [ openssl zlib curl ];
buildInputs = [ openssl zlib curl libgit2 ];
postBuild = ''
install -D "$src/git-series.1" "$out/man/man1/git-series.1"