html-tidy: Don't use stdenv.cross
This commit is contained in:
parent
60ce1e3b90
commit
936196129d
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, libxslt }:
|
{ stdenv, fetchFromGitHub, cmake, libxslt
|
||||||
|
, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "html-tidy-${version}";
|
name = "html-tidy-${version}";
|
||||||
@ -14,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake libxslt/*manpage*/ ];
|
nativeBuildInputs = [ cmake libxslt/*manpage*/ ];
|
||||||
|
|
||||||
cmakeFlags = stdenv.lib.optional
|
cmakeFlags = stdenv.lib.optional
|
||||||
(stdenv.cross.libc or null == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
|
(hostPlatform.libc or null == "msvcrt") "-DCMAKE_SYSTEM_NAME=Windows";
|
||||||
|
|
||||||
# ATM bin/tidy is statically linked, as upstream provides no other option yet.
|
# ATM bin/tidy is statically linked, as upstream provides no other option yet.
|
||||||
# https://github.com/htacg/tidy-html5/issues/326#issuecomment-160322107
|
# https://github.com/htacg/tidy-html5/issues/326#issuecomment-160322107
|
||||||
|
Loading…
Reference in New Issue
Block a user