zam-plugins: fix some cross builds

This commit is contained in:
FliegendeWurst
2025-06-04 09:48:04 +02:00
parent da14d047a1
commit c49514bd47
+6
View File
@@ -45,6 +45,10 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs ./dpf/utils/generate-ttl.sh
for f in plugins/*/Makefile; do
substituteInPlace "$f" \
--replace-quiet 'pkg-config' '${stdenv.cc.targetPrefix}pkg-config'
done
'';
makeFlags = [
@@ -59,5 +63,7 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
maintainers = [ maintainers.magnetophon ];
platforms = platforms.linux;
# tries to run dpf/utils/lv2_ttl_generator (built for host)
broken = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
};
}