2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, libxslt, freetype, libpng, libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "swfmill";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "http://swfmill.org/releases/swfmill-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-2yT2OWOVf67AK7FLi2HNr3CWd0+M/eudNXPi4ZIxVI4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libxslt freetype libpng libxml2 ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# fatal error: 'libxml/xpath.h' file not found
|
2024-09-26 11:04:55 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${libxml2.dev}/include/libxml2";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Xml2swf and swf2xml processor with import functionalities";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://swfmill.org";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2024-01-02 11:29:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
mainProgram = "swfmill";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|