Merge pull request #256543 from foo-dogsquared/update-guile-lib

This commit is contained in:
Artturi 2023-09-27 09:57:15 +03:00 committed by GitHub
commit 2301b120c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, autoreconfHook
, guile
, pkg-config
, texinfo
@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
@ -23,6 +25,12 @@ stdenv.mkDerivation rec {
texinfo
];
postPatch = ''
substituteInPlace configure.ac \
--replace 'SITEDIR="$datadir/guile-lib"' 'SITEDIR=$datadir/guile/site/$GUILE_EFFECTIVE_VERSION' \
--replace 'SITECCACHEDIR="$libdir/guile-lib/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"' 'SITECCACHEDIR="$libdir/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"'
'';
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];
doCheck = !stdenv.isDarwin;
@ -43,7 +51,7 @@ stdenv.mkDerivation rec {
for Guile".
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
maintainers = with maintainers; [ vyp foo-dogsquared ];
platforms = guile.meta.platforms;
};
}