forked from mirrors/nixpkgs
20 lines
493 B
Nix
20 lines
493 B
Nix
{fetchFromGitHub, libgit2, ...}:
|
|
|
|
libgit2.overrideAttrs (oldAttrs: {
|
|
cmakeFlags = oldAttrs.cmakeFlags ++ [
|
|
"-DUSE_BUNDLED_ZLIB=ON"
|
|
"-DUSE_ICONV=OFF"
|
|
"-DBUILD_CLAR=OFF"
|
|
"-DUSE_SSH=OFF"
|
|
"-DUSE_HTTPS=OFF"
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
"-DUSE_EXT_HTTP_PARSER=OFF"
|
|
];
|
|
src = fetchFromGitHub {
|
|
owner = "romkatv";
|
|
repo = "libgit2";
|
|
rev = "aab6c56e6766fa752bef00c745067d875925fc89";
|
|
sha256 = "1yqqhpi5xi6s86411sixw4yq5c6n2v8pdh447c8b7q5lfc089lvl";
|
|
};
|
|
})
|