libgit2: fix hash

... and switch to fetchFromGitHub to avoid future hash changes.
This commit is contained in:
Ricardo M. Correia 2017-09-14 14:58:37 +02:00 committed by Orivej Desh
parent 5f3b84e979
commit 1aef6f40bb

View File

@ -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 { stdenv.mkDerivation (rec {
version = "0.25.1"; version = "0.25.1";
name = "libgit2-${version}"; name = "libgit2-${version}";
src = fetchurl { src = fetchFromGitHub {
name = "${name}.tar.gz"; owner = "libgit2";
url = "https://github.com/libgit2/libgit2/tarball/v${version}"; repo = "libgit2";
sha256 = "100bah8picqjzyhpw4wd7z5vyidcb8aggin50bhbpn607h8n8bml"; rev = "v${version}";
sha256 = "1jhikg0gqpdzfzhgv44ybdpm24lvgkc7ki4306lc5lvmj1s2nylj";
}; };
# TODO: `cargo` (rust's package manager) surfaced a serious bug in # TODO: `cargo` (rust's package manager) surfaced a serious bug in
@ -23,8 +26,11 @@ stdenv.mkDerivation (rec {
cmakeFlags = "-DTHREADSAFE=ON"; cmakeFlags = "-DTHREADSAFE=ON";
nativeBuildInputs = [ cmake python pkgconfig ]; nativeBuildInputs = [ cmake python pkgconfig ];
buildInputs = [ zlib libssh2 openssl http-parser curl ]; buildInputs = [ zlib libssh2 openssl http-parser curl ];
enableParallelBuilding = true;
meta = { meta = {
description = "The Git linkable library"; description = "The Git linkable library";
homepage = https://libgit2.github.com/; homepage = https://libgit2.github.com/;