2009-04-07 20:17:22 +01:00
|
|
|
{stdenv, fetchurl, libjpeg, lcms, gettext }:
|
|
|
|
|
2010-09-26 20:40:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dcraw-9.04";
|
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";
|
|
|
|
sha256 = "1i9w35pldyzp5xjjcy20rps7p9wkxs6vj4wz43vhfyda93nij4y0";
|
2009-04-07 20:17:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libjpeg lcms gettext ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s@/usr/local@$out@ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
set +e
|
|
|
|
sh install
|
|
|
|
set -e
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.cybercom.net/~dcoffin/dcraw/;
|
|
|
|
description = "Decoder for many camera raw picture formats";
|
|
|
|
license = "free";
|
2010-09-26 20:40:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2009-04-07 20:17:22 +01:00
|
|
|
};
|
|
|
|
}
|