mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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 {
|
||||
name = "jhead-${version}";
|
||||
|
@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48";
|
||||
};
|
||||
|
||||
buildInputs = [ libjpeg ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace makefile \
|
||||
--replace /usr/local/bin $out/bin
|
||||
|
||||
substituteInPlace jhead.c \
|
||||
--replace "\" Compiled: \"__DATE__" ""
|
||||
--replace "\" Compiled: \"__DATE__" "" \
|
||||
--replace "jpegtran -trim" "${libjpeg}/bin/jpegtran -trim"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue