1 {lib, stdenv, fetchurl, libjpeg, lcms2, gettext, libiconv }:
3 stdenv.mkDerivation rec {
8 url = "https://www.dechifro.org/dcraw/archive/dcraw-${version}.tar.gz";
9 sha256 = "1fdl3xa1fbm71xzc3760rsjkvf0x5jdjrvdzyg2l9ka24vdc7418";
12 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
13 buildInputs = [ libjpeg lcms2 gettext ];
15 # Jasper is disabled because the library is abandoned and has many
18 substituteInPlace install \
19 --replace 'prefix=/usr/local' 'prefix=$out' \
21 --replace '-ljasper' '-DNO_JASPER=1'
30 homepage = "https://www.dechifro.org/dcraw/";
31 description = "Decoder for many camera raw picture formats";
32 license = lib.licenses.free;
33 platforms = lib.platforms.unix; # Once had cygwin problems
35 knownVulnerabilities = [