Merge pull request #298958 from Moraxyc/fix-wslay

wslay: fix package

Changed files
+25 -5
pkgs
by-name
ws
wslay
+25 -5
pkgs/by-name/ws/wslay/package.nix
···
-
{ stdenv, lib, fetchFromGitHub, cmake, cunit }:
+
{
+
stdenv,
+
lib,
+
fetchFromGitHub,
+
pkg-config,
+
cunit,
+
sphinx,
+
autoreconfHook,
+
nettle,
+
}:
stdenv.mkDerivation rec {
pname = "wslay";
···
hash = "sha256-xKQGZO5hNzMg+JYKeqOBsu73YO+ucBEOcNhG8iSNYvA=";
};
-
strictDeps = true;
+
postPatch = ''
+
substituteInPlace doc/sphinx/conf.py.in \
+
--replace-fail "add_stylesheet" "add_css_file"
+
'';
-
nativeBuildInputs = [ cmake ];
+
strictDeps = true;
-
cmakeFlags = [
-
(lib.cmakeBool "WSLAY_TESTS" true)
+
nativeBuildInputs = [
+
autoreconfHook
+
pkg-config
+
sphinx
];
+
+
buildInputs = [ nettle ];
doCheck = true;
checkInputs = [ cunit ];
+
+
preCheck = lib.optionalString stdenv.isDarwin ''
+
export DYLD_LIBRARY_PATH=$(pwd)/lib/.libs
+
'';
meta = with lib; {
homepage = "https://tatsuhiro-t.github.io/wslay/";