2018-08-11 20:09:50 +02:00
|
|
|
{stdenv, fetchurl, libjpeg, lcms2, gettext, jasper, libiconv }:
|
2009-04-07 21:17:22 +02:00
|
|
|
|
2010-09-26 21:40:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-06-08 19:22:23 +02:00
|
|
|
name = "dcraw-9.28.0";
|
2009-04-07 21:17:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.cybercom.net/~dcoffin/dcraw/archive/${name}.tar.gz";
|
2018-06-08 19:22:23 +02:00
|
|
|
sha256 = "1fdl3xa1fbm71xzc3760rsjkvf0x5jdjrvdzyg2l9ka24vdc7418";
|
2009-04-07 21:17:22 +02:00
|
|
|
};
|
|
|
|
|
2018-08-11 20:09:50 +02:00
|
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
|
2014-08-03 14:38:43 +02:00
|
|
|
buildInputs = [ libjpeg lcms2 gettext jasper ];
|
2009-04-07 21:17:22 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
2018-08-11 20:09:50 +02:00
|
|
|
substituteInPlace install \
|
|
|
|
--replace 'prefix=/usr/local' 'prefix=$out' \
|
|
|
|
--replace gcc '$CC'
|
2009-04-07 21:17:22 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2018-08-11 20:09:50 +02:00
|
|
|
sh -e install
|
2009-04-07 21:17:22 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.cybercom.net/~dcoffin/dcraw/;
|
|
|
|
description = "Decoder for many camera raw picture formats";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.free;
|
2018-03-13 23:00:52 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2009-04-07 21:17:22 +02:00
|
|
|
};
|
|
|
|
}
|