From 2e8c21e4dd9e6720f7add945d179808f233437ad Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Tue, 19 Jul 2016 12:27:17 +0300 Subject: [PATCH] libjpeg-drop: init at 9b (#16671) --- .../libraries/libjpeg-drop/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/libraries/libjpeg-drop/default.nix diff --git a/pkgs/development/libraries/libjpeg-drop/default.nix b/pkgs/development/libraries/libjpeg-drop/default.nix new file mode 100644 index 000000000000..ed1b5f5bdb0e --- /dev/null +++ b/pkgs/development/libraries/libjpeg-drop/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, static ? true }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "libjpeg-drop-9b"; + + srcs = [ + (fetchurl { + url = http://www.ijg.org/files/jpegsrc.v9b.tar.gz; + sha256 = "0lnhpahgdwlrkd41lx6cr90r199f8mc6ydlh7jznj5klvacd63r4"; + }) + (fetchurl { + url = http://jpegclub.org/droppatch.v9b.tar.gz; + sha256 = "022bnvpird7w5pwbfqpq7j7pwja5kp6x9k3sdypcy3g2nwwy2wwk"; + }) + ]; + + postUnpack = '' + rm jpegtran + mv jpegtran.c jpeg-9b/jpegtran.c + mv transupp.c jpeg-9b/transupp.c + mv transupp.h jpeg-9b/transupp.h + ''; + + configureFlags = [] + ++ optional static [ "--enable-static" "--disable-shared" ]; + + outputs = [ "dev" "out" "man" "bin" ]; + + meta = { + homepage = http://jpegclub.org/jpegtran/; + description = "Experimental lossless crop 'n' drop (cut & paste) patches for libjpeg"; + license = stdenv.lib.licenses.free; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72901ffc8bc2..ff3e31623fee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8186,6 +8186,7 @@ in libjpeg_original = callPackage ../development/libraries/libjpeg { }; libjpeg_turbo = callPackage ../development/libraries/libjpeg-turbo { }; + libjpeg_drop = callPackage ../development/libraries/libjpeg-drop { }; libjpeg = if stdenv.isLinux then self.libjpeg_turbo else self.libjpeg_original; # some problems, both on FreeBSD and Darwin libjpeg62 = callPackage ../development/libraries/libjpeg/62.nix {