From 9444cfcab0ab497af0f04f433accfec2da3eb58c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 27 Jun 2014 16:08:18 +0400 Subject: [PATCH] Adding libmwaw: a library to import some old Macintosh text document formats --- pkgs/development/libraries/libmwaw/0.2.nix | 29 +++++++++++++++++++ .../libraries/libmwaw/0.2.upstream | 4 +++ .../development/libraries/libmwaw/default.nix | 29 +++++++++++++++++++ .../libraries/libmwaw/default.upstream | 4 +++ pkgs/top-level/all-packages.nix | 3 ++ 5 files changed, 69 insertions(+) create mode 100644 pkgs/development/libraries/libmwaw/0.2.nix create mode 100644 pkgs/development/libraries/libmwaw/0.2.upstream create mode 100644 pkgs/development/libraries/libmwaw/default.nix create mode 100644 pkgs/development/libraries/libmwaw/default.upstream diff --git a/pkgs/development/libraries/libmwaw/0.2.nix b/pkgs/development/libraries/libmwaw/0.2.nix new file mode 100644 index 000000000000..d66414b68142 --- /dev/null +++ b/pkgs/development/libraries/libmwaw/0.2.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib, libwpg, libwpd, librevenge}: +let + s = # Generated upstream information + rec { + baseName="libmwaw"; + version="0.2.1"; + name="${baseName}-${version}"; + hash="1fil1ll84pq0k3g6rcc2xfg1yrigkljp4ay5p2wpwd9qlmfvvvqn"; + url="mirror://sourceforge/project/libmwaw/libmwaw/libmwaw-0.2.1/libmwaw-0.2.1.tar.xz"; + sha256="1fil1ll84pq0k3g6rcc2xfg1yrigkljp4ay5p2wpwd9qlmfvvvqn"; + }; + buildInputs = [ + boost pkgconfig cppunit zlib libwpg libwpd librevenge + ]; +in +stdenv.mkDerivation { + inherit (s) name version; + inherit buildInputs; + src = fetchurl { + inherit (s) url sha256; + }; + meta = { + inherit (s) version; + description = ''Import library for some old mac text documents''; + license = stdenv.lib.licenses.mpl20 ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/libmwaw/0.2.upstream b/pkgs/development/libraries/libmwaw/0.2.upstream new file mode 100644 index 000000000000..8ce00ecf7675 --- /dev/null +++ b/pkgs/development/libraries/libmwaw/0.2.upstream @@ -0,0 +1,4 @@ +url http://sourceforge.net/projects/libmwaw/files/libmwaw/ +SF_version_dir libmwaw-0.2. +version_link '[.]tar.xz/download$' +SF_redirect diff --git a/pkgs/development/libraries/libmwaw/default.nix b/pkgs/development/libraries/libmwaw/default.nix new file mode 100644 index 000000000000..0a7b76edab13 --- /dev/null +++ b/pkgs/development/libraries/libmwaw/default.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl, boost, pkgconfig, cppunit, zlib, libwpg, libwpd, librevenge}: +let + s = # Generated upstream information + rec { + baseName="libmwaw"; + version="0.3.1"; + name="${baseName}-${version}"; + hash="0fa6nf4pxl853xnh2kdjw1nk3w6i39diixiampml7g9qygbd0vqb"; + url="mirror://sourceforge/project/libmwaw/libmwaw/libmwaw-0.3.1/libmwaw-0.3.1.tar.xz"; + sha256="0fa6nf4pxl853xnh2kdjw1nk3w6i39diixiampml7g9qygbd0vqb"; + }; + buildInputs = [ + boost pkgconfig cppunit zlib libwpg libwpd librevenge + ]; +in +stdenv.mkDerivation { + inherit (s) name version; + inherit buildInputs; + src = fetchurl { + inherit (s) url sha256; + }; + meta = { + inherit (s) version; + description = ''Import library for some old mac text documents''; + license = stdenv.lib.licenses.mpl20 ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/libmwaw/default.upstream b/pkgs/development/libraries/libmwaw/default.upstream new file mode 100644 index 000000000000..0db6d23a52f1 --- /dev/null +++ b/pkgs/development/libraries/libmwaw/default.upstream @@ -0,0 +1,4 @@ +url http://sourceforge.net/projects/libmwaw/files/libmwaw/ +SF_version_dir libmwaw- +version_link '[.]tar.xz/download$' +SF_redirect diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82778930b50e..245c7f70c292 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5310,6 +5310,9 @@ let libmusicbrainz = libmusicbrainz3; + libmwaw = callPackage ../development/libraries/libmwaw { }; + libmwaw_02 = callPackage ../development/libraries/libmwaw/0.2.nix { }; + libmx = callPackage ../development/libraries/libmx { }; libnet = callPackage ../development/libraries/libnet { };