about summary refs log tree commit diff
path: root/pkgs/tools/video
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-10 15:59:50 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-10 15:59:50 +0100
commit16a11b6be33fbd4dd474c00ec5790b03ea9efc9d (patch)
treeb254179da7afd78e723ba8e09959401b90b3f2e8 /pkgs/tools/video
parent64891e361bc375a00e2da0b98a07267d17abfa2e (diff)
swfmill: add darwin support
Diffstat (limited to 'pkgs/tools/video')
-rw-r--r--pkgs/tools/video/swfmill/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/video/swfmill/default.nix b/pkgs/tools/video/swfmill/default.nix
index c93534bf1a20b..8e6d0baf7e725 100644
--- a/pkgs/tools/video/swfmill/default.nix
+++ b/pkgs/tools/video/swfmill/default.nix
@@ -14,11 +14,14 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkg-config ];
   buildInputs = [ libxslt freetype libpng libxml2 ];
 
+  # fatal error: 'libxml/xpath.h' file not found
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${libxml2.dev}/include/libxml2";
+
   meta = {
     description = "An xml2swf and swf2xml processor with import functionalities";
     homepage = "http://swfmill.org";
     license = lib.licenses.gpl2;
-    platforms = lib.platforms.linux;
+    platforms = lib.platforms.unix;
     mainProgram = "swfmill";
   };
 }