From ed6bbb4f4d6a55125a8509c7d84c80a17013abaf Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 1 Apr 2018 22:31:22 +0200 Subject: [PATCH] swfdec: init at 0.8.4 --- pkgs/tools/graphics/swfdec/default.nix | 38 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/tools/graphics/swfdec/default.nix diff --git a/pkgs/tools/graphics/swfdec/default.nix b/pkgs/tools/graphics/swfdec/default.nix new file mode 100644 index 000000000000..1c3c0f3b4515 --- /dev/null +++ b/pkgs/tools/graphics/swfdec/default.nix @@ -0,0 +1,38 @@ +{stdenv, fetchurl +, cairo, pango, glib, liboil, zlib, gstreamer, gst-plugins-base +, gst-plugins-good , gtk2, libsoup, alsaLib, pkgconfig +}: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "swfdec"; + version = "0.8.4"; + + src = fetchurl { + url = "http://swfdec.freedesktop.org/download/swfdec/0.8/swfdec-${version}.tar.gz"; + sha256 = "00nqrd0fzf0g76rn80d7h56n6hxv7x1x6k89zj45bj564lzwc3vs"; + }; + + buildInputs = [ + cairo glib liboil pango zlib gstreamer gst-plugins-base gst-plugins-good + gtk2 libsoup alsaLib pkgconfig + ]; + + postInstall = '' + mkdir "$out/bin" + cp tools/.libs/swfdec-extract "$out/bin" + cp tools/.libs/dump "$out/bin/swfdec-dump" + cp player/.libs/swfplay "$out/bin/swfplay" + ''; + + enableParallelBuilding = true; + + meta = { + inherit version; + description = "Decoder/renderer for Macromedia Flash animations"; + license = stdenv.lib.licenses.lgpl21 ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + homepage = https://swfdec.freedesktop.org/wiki/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0282ecd24dec..e1ca6dc9fcbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4976,6 +4976,8 @@ with pkgs; inherit (perlPackages) LWP URI HTMLParser HTTPServerSimple Parent; }; + swfdec = callPackage ../tools/graphics/swfdec {}; + svnfs = callPackage ../tools/filesystems/svnfs { }; svtplay-dl = callPackage ../tools/misc/svtplay-dl { };