mozjpeg: fix libpng dependency

This commit is contained in:
Aristid Breitkreuz 2016-01-07 22:55:20 +01:00
parent 6acad9ea04
commit fa6ec6b057

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, file, libpng, nasm }: { stdenv, fetchurl, file, pkgconfig, libpng, nasm }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "3.1"; version = "3.1";
@ -10,11 +10,10 @@ stdenv.mkDerivation rec {
}; };
postPatch = '' postPatch = ''
sed -i -e "s!/usr/bin/file!${file}/bin/file!g" configure sed -i -e "s!/usr/bin/file!${file}/bin/file!g" configure
''; '';
buildInputs = [ libpng nasm ]; buildInputs = [ libpng pkgconfig nasm ];
meta = { meta = {
description = "Mozilla JPEG Encoder Project"; description = "Mozilla JPEG Encoder Project";