1{ lib
2, stdenv
3, fetchFromGitLab
4, guile
5, libgit2
6, scheme-bytestructures
7, autoreconfHook
8, pkg-config
9, texinfo
10}:
11
12stdenv.mkDerivation rec {
13 pname = "guile-git";
14 version = "0.5.2";
15
16 src = fetchFromGitLab {
17 owner = "guile-git";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "x6apF9fmwzrkyzAexKjClOTFrbE31+fVhSLyFZkKRYU=";
21 };
22
23 postConfigure = ''
24 sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile;
25 sed -i '/godir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile;
26 '';
27
28 nativeBuildInputs = [
29 autoreconfHook pkg-config texinfo
30 ];
31 buildInputs = [
32 guile
33 ];
34 propagatedBuildInputs = [
35 libgit2 scheme-bytestructures
36 ];
37
38 enableParallelBuilding = true;
39
40 meta = with lib; {
41 description = "Bindings to Libgit2 for GNU Guile";
42 homepage = "https://gitlab.com/guile-git/guile-git";
43 license = licenses.gpl3Plus;
44 maintainers = with maintainers; [ ethancedwards8 ];
45 platforms = platforms.linux;
46 };
47}
48