Merge pull request #273364 from wegank/swfmill-darwin

swfmill: add darwin support
This commit is contained in:
Weijia Wang 2023-12-12 02:37:59 +01:00 committed by GitHub
commit 9c264295e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -14,11 +14,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libxslt freetype libpng libxml2 ]; 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 = { meta = {
description = "An xml2swf and swf2xml processor with import functionalities"; description = "An xml2swf and swf2xml processor with import functionalities";
homepage = "http://swfmill.org"; homepage = "http://swfmill.org";
license = lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = lib.platforms.linux; platforms = lib.platforms.unix;
mainProgram = "swfmill"; mainProgram = "swfmill";
}; };
} }

View File

@ -20202,7 +20202,7 @@ with pkgs;
c3c = callPackage ../development/compilers/c3c { }; c3c = callPackage ../development/compilers/c3c { };
swfmill = callPackage ../tools/video/swfmill { stdenv = gcc10StdenvCompat; }; swfmill = callPackage ../tools/video/swfmill { };
swftools = callPackage ../tools/video/swftools { swftools = callPackage ../tools/video/swftools {
stdenv = gccStdenv; stdenv = gccStdenv;