1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/tools/graphics/dcraw/default.nix

33 lines
878 B
Nix
Raw Normal View History

2018-08-11 19:09:50 +01:00
{stdenv, fetchurl, libjpeg, lcms2, gettext, jasper, libiconv }:
stdenv.mkDerivation rec {
name = "dcraw-9.28.0";
src = fetchurl {
url = "https://www.cybercom.net/~dcoffin/dcraw/archive/${name}.tar.gz";
sha256 = "1fdl3xa1fbm71xzc3760rsjkvf0x5jdjrvdzyg2l9ka24vdc7418";
};
2018-08-11 19:09:50 +01:00
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
2014-08-03 13:38:43 +01:00
buildInputs = [ libjpeg lcms2 gettext jasper ];
patchPhase = ''
2018-08-11 19:09:50 +01:00
substituteInPlace install \
--replace 'prefix=/usr/local' 'prefix=$out' \
--replace gcc '$CC'
'';
buildPhase = ''
mkdir -p $out/bin
2018-08-11 19:09:50 +01:00
sh -e install
'';
meta = {
homepage = http://www.cybercom.net/~dcoffin/dcraw/;
description = "Decoder for many camera raw picture formats";
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
maintainers = [ ];
};
}