2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, guile
|
|
|
|
, libgit2
|
|
|
|
, scheme-bytestructures
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, texinfo
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-git";
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "0.5.2";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "guile-git";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-24 12:14:16 +00:00
|
|
|
sha256 = "x6apF9fmwzrkyzAexKjClOTFrbE31+fVhSLyFZkKRYU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile;
|
|
|
|
sed -i '/godir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile;
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkg-config texinfo
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
guile
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libgit2 scheme-bytestructures
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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 = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|