Commit bcff4919 authored by xfnw's avatar xfnw
Browse files

catgirl: replace libressl with libretls

catgirl cannot find the system ca store using latest libressl:

catgirl: tls_connect: failed to open CA file 'etc/ssl/cert.pem': No such file or directory
parent a2584f2a
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2,7 +2,8 @@
  ctags,
  fetchurl,
  lib,
  libressl,
  libretls,
  openssl,
  ncurses,
  pkg-config,
  stdenv,
@@ -19,12 +20,12 @@ stdenv.mkDerivation (finalAttrs: {

  # 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
  # is the "out" output of openssl in our case (where the libraries are
  # installed), so we need to fix this up.
  postConfigure = ''
    substituteInPlace config.mk --replace \
    substituteInPlace config.mk --replace-fail \
      "$($PKG_CONFIG --variable exec_prefix openssl)" \
      "${lib.getBin libressl}"
      "${lib.getBin openssl}"
  '';

  nativeBuildInputs = [
@@ -32,7 +33,8 @@ stdenv.mkDerivation (finalAttrs: {
    pkg-config
  ];
  buildInputs = [
    libressl
    libretls
    openssl
    ncurses
  ];
  strictDeps = true;