about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2021-10-05 22:12:15 +0200
committersterni <sternenseemann@systemli.org>2021-10-05 22:38:06 +0200
commitad67f8629ec6d7902fd4e87f7b3ae0ac52bf9f5c (patch)
treee46b1f4abec124091ea29f95cb63a106eb2bd694 /pkgs/applications/networking/irc
parent60f2222eec5719bc0cd0d4bdcf1be1e345dba62e (diff)
catgirl: fix path to openssl utility after configuring
catgirl wants to invoke the openssl utility at runtime and tries to
obtain a path to the binary as OPENSSL_BIN. This uses pkg-config's
exec_prefix which is not where binaries are installed in nixpkgs,
sadly. There is (at least as far as I know) no more appropriate
pkg-config variable unfortunately.
Diffstat (limited to 'pkgs/applications/networking/irc')
-rw-r--r--pkgs/applications/networking/irc/catgirl/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/networking/irc/catgirl/default.nix b/pkgs/applications/networking/irc/catgirl/default.nix
index 936524918e040..f45f803e805f6 100644
--- a/pkgs/applications/networking/irc/catgirl/default.nix
+++ b/pkgs/applications/networking/irc/catgirl/default.nix
@@ -9,6 +9,16 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-MEm5mrrWfNp+mBHFjGSOGvvfvBJ+Ho/K+mPUxzJDkV0=";
   };
 
+  # catgirl's configure script uses pkg-config --variable exec_prefix openssl
+  # to discover the install location of the openssl(1) utility. exec_prefix
+  # is the "out" output of libressl in our case (where the libraries are
+  # installed), so we need to fix this up.
+  postConfigure = ''
+    substituteInPlace config.mk --replace \
+      "$($PKG_CONFIG --variable exec_prefix openssl)" \
+      "${lib.getBin libressl}"
+  '';
+
   nativeBuildInputs = [ ctags pkg-config ];
   buildInputs = [ libressl ncurses ];
   strictDeps = true;