nixpkgs/pkgs/tools/graphics/dcraw/default.nix

30 lines
723 B
Nix
Raw Normal View History

2013-12-01 17:13:26 +00:00
{stdenv, fetchurl, libjpeg, lcms, gettext, jasper }:
stdenv.mkDerivation rec {
2014-05-22 11:58:08 +01:00
name = "dcraw-9.20";
src = fetchurl {
url = "http://www.cybercom.net/~dcoffin/dcraw/archive/${name}.tar.gz";
2014-05-22 11:58:08 +01:00
sha256 = "151xpfmfd1ksjcnpmsnxry1mf2xpx9iaiy9sg1vxgm9i80lkkp5f";
};
2013-12-01 17:13:26 +00:00
buildInputs = [ libjpeg lcms gettext jasper ];
patchPhase = ''
sed -i -e s@/usr/local@$out@ install
'';
buildPhase = ''
mkdir -p $out/bin
sh install
'';
meta = {
homepage = http://www.cybercom.net/~dcoffin/dcraw/;
description = "Decoder for many camera raw picture formats";
license = "free";
platforms = stdenv.lib.platforms.allBut "i686-cygwin";
maintainers = [ stdenv.lib.maintainers.urkud ];
};
}