hyp2mat: fix cross build (#375019)

This commit is contained in:
Sandro
2025-01-19 19:49:17 +01:00
committed by GitHub
+17 -5
View File
@@ -12,6 +12,7 @@
pkg-config,
libpng,
zlib,
buildPackages,
}:
stdenv.mkDerivation rec {
@@ -25,8 +26,24 @@ stdenv.mkDerivation rec {
sha256 = "03ibk51swxfl7pfrhcrfiffdi4mnf8kla0g1xj1lsrvrjwapfx03";
};
postPatch = ''
substituteInPlace doc/Makefile.am --replace-fail \
'$(HELP2MAN) --output=$@ --no-info --include=$< $(PROGNAME)' \
'$(HELP2MAN) --output=$@ --no-info --include=$< ${
if stdenv.buildPlatform.canExecute stdenv.hostPlatform then
(placeholder "out")
else
buildPackages.hyp2mat
}/bin/`basename $(PROGNAME)`'
'';
nativeBuildInputs = [
autoreconfHook
bison
flex
gengetopt
groff
help2man
pkg-config
];
@@ -34,11 +51,6 @@ stdenv.mkDerivation rec {
libharu
libpng
zlib
bison
flex
gengetopt
help2man
groff
];
configureFlags = [ "--enable-library" ];