depot/third_party/nixpkgs/pkgs/by-name/gu/guile-git/package.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitLab
, guile
, libgit2
, scheme-bytestructures
, autoreconfHook
, pkg-config
, texinfo
}:
stdenv.mkDerivation rec {
pname = "guile-git";
version = "0.8.0";
src = fetchFromGitLab {
owner = "guile-git";
repo = pname;
rev = "v${version}";
hash = "sha256-EZ2uGyk1K2YCl/U7EzTKri6CEe8CGDRy4pNRVjp7ZZY=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook guile pkg-config texinfo
];
buildInputs = [
guile
];
propagatedBuildInputs = [
libgit2 scheme-bytestructures
];
doCheck = !stdenv.hostPlatform.isDarwin;
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];
enableParallelBuilding = true;
# Skipping proxy tests since it requires network access.
postConfigure = ''
sed -i -e '94i (test-skip 1)' ./tests/proxy.scm
'';
meta = with lib; {
description = "Bindings to Libgit2 for GNU Guile";
homepage = "https://gitlab.com/guile-git/guile-git";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ethancedwards8 ];
platforms = guile.meta.platforms;
};
}