about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/video/swfmill/default.nix
blob: dbad79e61ad1dc4275334f2d36a69d15e61b3f4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchurl
, pkg-config, libxslt, freetype, libpng, libxml2
}:

stdenv.mkDerivation rec {
  pname = "swfmill";
  version = "0.3.3";

  src = fetchurl {
    url = "http://swfmill.org/releases/swfmill-${version}.tar.gz";
    sha256 = "15mcpql448vvgsbxs7wd0vdk1ln6rdcpnif6i2zjm5l4xng55s7r";
  };

  # Fixes build with GCC 6
  NIX_CFLAGS_COMPILE = "-std=c++03";

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ libxslt freetype libpng libxml2 ];

  meta = {
    description = "An xml2swf and swf2xml processor with import functionalities";
    homepage = "http://swfmill.org";
    license = lib.licenses.gpl2;
    platforms = lib.platforms.linux;
  };
}