summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Arazas <foodogsquared@foodogsquared.one>2023-09-22 01:24:47 +0800
committerGabriel Arazas <foodogsquared@foodogsquared.one>2023-09-22 01:33:03 +0800
commit08070c94d93c7570dc8cedf6fb8097a5eed7f4e9 (patch)
tree58391f1f51a8d61eb43f9d017ed6421e7273aae9
parentf17dd885896d41b8d6e55ed9d19aed6a6f79054d (diff)
downloadnixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar.gz
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar.bz2
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar.lz
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar.xz
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.tar.zst
nixpkgs-08070c94d93c7570dc8cedf6fb8097a5eed7f4e9.zip
guile-lib: fix module installation in the output
This should now make Guile recognize it as one of the module in its
search path.
-rw-r--r--pkgs/development/guile-modules/guile-lib/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/guile-modules/guile-lib/default.nix b/pkgs/development/guile-modules/guile-lib/default.nix
index 23576729ac0..75e45b00d4e 100644
--- a/pkgs/development/guile-modules/guile-lib/default.nix
+++ b/pkgs/development/guile-modules/guile-lib/default.nix
@@ -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;