Merge pull request #298958 from Moraxyc/fix-wslay

wslay: fix package

authored by Weijia Wang and committed by GitHub b2245dab 2f4ba842

+25 -5
+25 -5
pkgs/by-name/ws/wslay/package.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, cunit }: 1 + { 2 + stdenv, 3 + lib, 4 + fetchFromGitHub, 5 + pkg-config, 6 + cunit, 7 + sphinx, 8 + autoreconfHook, 9 + nettle, 10 + }: 2 11 3 12 stdenv.mkDerivation rec { 4 13 pname = "wslay"; ··· 11 20 hash = "sha256-xKQGZO5hNzMg+JYKeqOBsu73YO+ucBEOcNhG8iSNYvA="; 12 21 }; 13 22 14 - strictDeps = true; 23 + postPatch = '' 24 + substituteInPlace doc/sphinx/conf.py.in \ 25 + --replace-fail "add_stylesheet" "add_css_file" 26 + ''; 15 27 16 - nativeBuildInputs = [ cmake ]; 28 + strictDeps = true; 17 29 18 - cmakeFlags = [ 19 - (lib.cmakeBool "WSLAY_TESTS" true) 30 + nativeBuildInputs = [ 31 + autoreconfHook 32 + pkg-config 33 + sphinx 20 34 ]; 35 + 36 + buildInputs = [ nettle ]; 21 37 22 38 doCheck = true; 23 39 24 40 checkInputs = [ cunit ]; 41 + 42 + preCheck = lib.optionalString stdenv.isDarwin '' 43 + export DYLD_LIBRARY_PATH=$(pwd)/lib/.libs 44 + ''; 25 45 26 46 meta = with lib; { 27 47 homepage = "https://tatsuhiro-t.github.io/wslay/";