Merge pull request #81664 from jtojnar/vips-cleanup
vips: general clean-ups
This commit is contained in:
commit
9d0fac46fd
@ -115,12 +115,9 @@ nodePackages // {
|
||||
joplin = nodePackages.joplin.override {
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = with pkgs; [
|
||||
# sharp, dep list:
|
||||
# http://sharp.pixelplumbing.com/en/stable/install/
|
||||
cairo expat fontconfig freetype fribidi gettext giflib
|
||||
glib harfbuzz lcms libcroco libexif libffi libgsf
|
||||
libjpeg_turbo libpng librsvg libtiff vips
|
||||
libwebp libxml2 pango pixman zlib
|
||||
# required by sharp
|
||||
# https://sharp.pixelplumbing.com/install
|
||||
vips
|
||||
|
||||
nodePackages.node-pre-gyp
|
||||
];
|
||||
|
@ -506,7 +506,7 @@ in
|
||||
--replace "gobject-2.0" "${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||
|
||||
substituteInPlace lib/vips.rb \
|
||||
--replace "vips_libname = 'vips'" "vips_libname = '${vips}/lib/libvips${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
--replace "vips_libname = 'vips'" "vips_libname = '${stdenv.lib.getLib vips}/lib/libvips${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -1,17 +1,34 @@
|
||||
{ stdenv, pkgconfig, glib, libxml2, expat,
|
||||
fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif,
|
||||
ApplicationServices,
|
||||
python27, libpng ? null,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
gtk-doc,
|
||||
gobject-introspection,
|
||||
{ stdenv
|
||||
, pkgconfig
|
||||
, glib
|
||||
, libxml2
|
||||
, expat
|
||||
, fftw
|
||||
, orc
|
||||
, lcms
|
||||
, imagemagick
|
||||
, openexr
|
||||
, libtiff
|
||||
, libjpeg
|
||||
, libgsf
|
||||
, libexif
|
||||
, ApplicationServices
|
||||
, python27
|
||||
, libpng ? null
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, autoreconfHook
|
||||
, gtk-doc
|
||||
, gobject-introspection
|
||||
,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vips";
|
||||
version = "8.9.1";
|
||||
|
||||
outputs = [ "bin" "out" "man" "dev" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libvips";
|
||||
repo = "libvips";
|
||||
@ -24,14 +41,46 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig autoreconfHook gtk-doc gobject-introspection ];
|
||||
buildInputs = [ glib libxml2 fftw orc lcms
|
||||
imagemagick openexr libtiff libjpeg
|
||||
libgsf libexif python27 libpng expat ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin ApplicationServices;
|
||||
patches = [
|
||||
# autogen.sh should not run configure
|
||||
# https://github.com/libvips/libvips/pull/1566
|
||||
(fetchpatch {
|
||||
url = "https://github.com/libvips/libvips/commit/97a92e0e6abab652fdf99313b138bfd77d70deb4.patch";
|
||||
sha256 = "0w1sm5wmvfp8svdpk8mz57c1n6zzy3snq0g2f8yxjamv0d2gw2dp";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
autoreconfHook
|
||||
gtk-doc
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
libxml2
|
||||
fftw
|
||||
orc
|
||||
lcms
|
||||
imagemagick
|
||||
openexr
|
||||
libtiff
|
||||
libjpeg
|
||||
libgsf
|
||||
libexif
|
||||
python27
|
||||
libpng
|
||||
expat
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin ApplicationServices;
|
||||
|
||||
# Required by .pc file
|
||||
propagatedBuildInputs = [
|
||||
glib
|
||||
];
|
||||
|
||||
autoreconfPhase = ''
|
||||
./autogen.sh
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user