nixpkgs/pkgs/tools/graphics/dcraw/default.nix
Armijn Hemel 08a76cde77 update to 8.98
svn path=/nixpkgs/trunk/; revision=19112
2009-12-25 14:37:56 +00:00

30 lines
617 B
Nix

{stdenv, fetchurl, libjpeg, lcms, gettext }:
stdenv.mkDerivation {
name = "dcraw-8.98";
src = fetchurl {
url = http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-8.98.tar.gz;
sha256 = "0vb375m1s5b1d72d9a5apcyxz2b9zl0pycj700yhy2zsfx804kmp";
};
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";
};
}