jhead: add libjpeg as dependency
The `jpegtran` tool from libjpeg is required for the `-autorot` command.
This commit is contained in:
parent
eaf1064209
commit
f54ed09096
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, libjpeg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "jhead-${version}";
|
name = "jhead-${version}";
|
||||||
@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
|
sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libjpeg ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace makefile \
|
substituteInPlace makefile \
|
||||||
--replace /usr/local/bin $out/bin
|
--replace /usr/local/bin $out/bin
|
||||||
|
|
||||||
substituteInPlace jhead.c \
|
substituteInPlace jhead.c \
|
||||||
--replace "\" Compiled: \"__DATE__" ""
|
--replace "\" Compiled: \"__DATE__" "" \
|
||||||
|
--replace "jpegtran -trim" "${libjpeg}/bin/jpegtran -trim"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user