summary refs log tree commit diff
path: root/pkgs/development/libraries/git2
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2017-09-14 14:58:37 +0200
committerOrivej Desh <orivej@gmx.fr>2017-11-05 18:43:30 +0000
commit1aef6f40bbbe3348986058a12898e57afd4c0ba6 (patch)
tree9c736546c3a7f57751a1054d851a1c37efb83483 /pkgs/development/libraries/git2
parent5f3b84e979a85765fd2f05b302d75b24b285f930 (diff)
downloadnixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar.gz
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar.bz2
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar.lz
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar.xz
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.tar.zst
nixpkgs-1aef6f40bbbe3348986058a12898e57afd4c0ba6.zip
libgit2: fix hash
... and switch to fetchFromGitHub to avoid future hash changes.
Diffstat (limited to 'pkgs/development/libraries/git2')
-rw-r--r--pkgs/development/libraries/git2/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/development/libraries/git2/default.nix b/pkgs/development/libraries/git2/default.nix
index 0d53d00737b..ecc6552d1b4 100644
--- a/pkgs/development/libraries/git2/default.nix
+++ b/pkgs/development/libraries/git2/default.nix
@@ -1,13 +1,16 @@
-{ stdenv, fetchurl, pkgconfig, cmake, zlib, python, libssh2, openssl, curl, http-parser, libiconv }:
+{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
+, zlib, libssh2, openssl, http-parser, curl, libiconv
+}:
 
 stdenv.mkDerivation (rec {
   version = "0.25.1";
   name = "libgit2-${version}";
 
-  src = fetchurl {
-    name = "${name}.tar.gz";
-    url = "https://github.com/libgit2/libgit2/tarball/v${version}";
-    sha256 = "100bah8picqjzyhpw4wd7z5vyidcb8aggin50bhbpn607h8n8bml";
+  src = fetchFromGitHub {
+    owner = "libgit2";
+    repo = "libgit2";
+    rev = "v${version}";
+    sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj";
   };
 
   # TODO: `cargo` (rust's package manager) surfaced a serious bug in
@@ -23,8 +26,11 @@ stdenv.mkDerivation (rec {
   cmakeFlags = "-DTHREADSAFE=ON";
 
   nativeBuildInputs = [ cmake python pkgconfig ];
+
   buildInputs = [ zlib libssh2 openssl http-parser curl ];
 
+  enableParallelBuilding = true;
+
   meta = {
     description = "The Git linkable library";
     homepage = https://libgit2.github.com/;