1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/development/libraries/git2/0.25.nix

35 lines
879 B
Nix
Raw Normal View History

2017-11-05 05:03:17 +00:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
2017-11-09 19:12:54 +00:00
, zlib, libssh2, openssl, http-parser, curl
, libiconv, Security
2017-11-05 05:03:17 +00:00
}:
2017-11-09 19:12:54 +00:00
stdenv.mkDerivation rec {
2017-11-05 05:03:17 +00:00
version = "0.25.1";
name = "libgit2-${version}";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj";
};
2017-11-09 19:12:54 +00:00
cmakeFlags = [ "-DTHREADSAFE=ON" ];
2017-11-05 05:03:17 +00:00
nativeBuildInputs = [ cmake python pkgconfig ];
2017-11-09 19:12:54 +00:00
buildInputs = [ zlib libssh2 openssl http-parser curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
2017-11-05 05:03:17 +00:00
enableParallelBuilding = true;
meta = {
description = "The Git linkable library";
homepage = https://libgit2.github.com/;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
2017-11-09 19:12:54 +00:00
}