2014-08-03 13:38:43 +01:00
|
|
|
{stdenv, fetchurl, libjpeg, lcms2, gettext, jasper }:
|
2009-04-07 20:17:22 +01:00
|
|
|
|
2010-09-26 20:40:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-04-07 22:06:39 +01:00
|
|
|
name = "dcraw-9.27.0";
|
2009-04-07 20:17:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-09-26 20:40:00 +01:00
|
|
|
url = "http://www.cybercom.net/~dcoffin/dcraw/archive/${name}.tar.gz";
|
2018-04-07 22:06:39 +01:00
|
|
|
sha256 = "16bhk3pl5kb9ikv367szl8m92nx85rqypz5im8x3sakm357wrn61";
|
2009-04-07 20:17:22 +01:00
|
|
|
};
|
|
|
|
|
2014-08-03 13:38:43 +01:00
|
|
|
buildInputs = [ libjpeg lcms2 gettext jasper ];
|
2009-04-07 20:17:22 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s@/usr/local@$out@ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-04-07 20:17:22 +01:00
|
|
|
sh install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.cybercom.net/~dcoffin/dcraw/;
|
|
|
|
description = "Decoder for many camera raw picture formats";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2018-03-13 22:00:52 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2009-04-07 20:17:22 +01:00
|
|
|
};
|
|
|
|
}
|