git.iko.soy/typeable/nixpkgs
on master help sign in
dcraw: fix build on Darwin
commit85c43675d0908ec289fa808047e29356449bd674 authorAndrew Childs <lorne@cons.org.nz> dateSun 12 Aug 2018, 03:09 (8 years ago) parentb28f8b4
1 file changed+6−3
pkgs/tools/graphics/dcraw/default.nix+6−3
pkgs/tools/graphics/dcraw/default.nix+6−3
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, libjpeg, lcms2, gettext, jasper }:
1+{stdenv, fetchurl, libjpeg, lcms2, gettext, jasper, libiconv }:
22
33stdenv.mkDerivation rec {
44 name = "dcraw-9.28.0";
@@ -8,15 +8,18 @@ stdenv.mkDerivation rec {
88 sha256 = "1fdl3xa1fbm71xzc3760rsjkvf0x5jdjrvdzyg2l9ka24vdc7418";
99 };
1010
11+ nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
1112 buildInputs = [ libjpeg lcms2 gettext jasper ];
1213
1314 patchPhase = ''
14− sed -i -e s@/usr/local@$out@ install
15+ substituteInPlace install \
16+ --replace 'prefix=/usr/local' 'prefix=$out' \
17+ --replace gcc '$CC'
1518 '';
1619
1720 buildPhase = ''
1821 mkdir -p $out/bin
19− sh install
22+ sh -e install
2023 '';
2124
2225 meta = {