git.iko.soy/typeable/nixpkgs
on master help sign in
jhead: add libjpeg as dependency

The `jpegtran` tool from libjpeg is required for the `-autorot` command.

commitf54ed090965481369b6d878105587fb3909872c9 authorRobert Helgesson <robert@rycee.net> dateWed 6 Jan 2016, 20:33 (11 years ago) parenteaf1064
1 file changed+5−2
pkgs/tools/graphics/jhead/default.nix+5−2
pkgs/tools/graphics/jhead/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, libjpeg }:
22
33stdenv.mkDerivation rec {
44 name = "jhead-${version}";
@@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
99 sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
1010 };
1111
12+ buildInputs = [ libjpeg ];
13+
1214 patchPhase = ''
1315 substituteInPlace makefile \
1416 --replace /usr/local/bin $out/bin
1517
1618 substituteInPlace jhead.c \
17− --replace "\" Compiled: \"__DATE__" ""
19+ --replace "\" Compiled: \"__DATE__" "" \
20+ --replace "jpegtran -trim" "${libjpeg}/bin/jpegtran -trim"
1821 '';
1922
2023 installPhase = ''