Merge pull request #126644 from ethancedwards8/guile-git

This commit is contained in:
Sandro 2021-06-12 17:19:14 +02:00 committed by GitHub
commit 83713d32c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchFromGitLab
, guile
, libgit2
, scheme-bytestructures
, autoreconfHook
, pkg-config
, texinfo
}:
stdenv.mkDerivation rec {
pname = "guile-git";
version = "0.3.0";
src = fetchFromGitLab {
owner = "guile-git";
repo = pname;
rev = "v${version}";
sha256 = "1s77s70gzfj6h7bglq431kw8l4iknhsfpc0mnvcp4lkhwdcgyn1n";
};
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;
};
}

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, guile
, autoreconfHook
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "scheme-bytestructures";
version = "1.0.7";
src = fetchFromGitHub {
owner = "TaylanUB";
repo = pname;
rev = "v${version}";
sha256 = "0q0habjiy3h9cigb7q1br9kz6z212dn2ab31f6dgd3rrmsfn5rvb";
};
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
];
buildInputs = [
guile
];
meta = with lib; {
description = "Structured access to bytevector contents";
homepage = "https://github.com/TaylanUB/scheme-bytestructures";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ethancedwards8 ];
platforms = platforms.linux;
};
}

View file

@ -12577,6 +12577,8 @@ in
scheme48 = callPackage ../development/interpreters/scheme48 { };
scheme-bytestructures = callPackage ../development/scheme-modules/scheme-bytestructures { };
self = pkgsi686Linux.callPackage ../development/interpreters/self { };
spark = callPackage ../applications/networking/cluster/spark { };
@ -12651,6 +12653,8 @@ in
guile-fibers = callPackage ../development/guile-modules/guile-fibers { };
guile-git = callPackage ../development/guile-modules/guile-git { };
guile-gnome = callPackage ../development/guile-modules/guile-gnome {
gconf = gnome2.GConf;
guile = guile_2_0;