gem-config: add ruby-vips
This commit is contained in:
parent
2e76049491
commit
5aaf8c0e15
|
@ -23,7 +23,7 @@
|
||||||
, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl
|
, cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl
|
||||||
, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
|
, msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
|
||||||
, cairo, re2, rake, gobject-introspection, gdk_pixbuf, zeromq, czmq, graphicsmagick, libcxx
|
, cairo, re2, rake, gobject-introspection, gdk_pixbuf, zeromq, czmq, graphicsmagick, libcxx
|
||||||
, file, libvirt
|
, file, libvirt, glib, vips
|
||||||
, libselinux ? null, libsepol ? null
|
, libselinux ? null, libsepol ? null
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
|
@ -346,6 +346,22 @@ in
|
||||||
"--with-ldflags=-L${ncurses.out}/lib"
|
"--with-ldflags=-L${ncurses.out}/lib"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ruby-vips = attrs: {
|
||||||
|
postInstall = ''
|
||||||
|
cd "$(cat $out/nix-support/gem-meta/install-path)"
|
||||||
|
|
||||||
|
substituteInPlace lib/vips.rb \
|
||||||
|
--replace "glib-2.0" "${glib.out}/lib/libglib-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||||
|
|
||||||
|
substituteInPlace lib/vips.rb \
|
||||||
|
--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.out}/lib/libvips${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
rugged = attrs: {
|
rugged = attrs: {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ cmake openssl libssh2 zlib ];
|
buildInputs = [ cmake openssl libssh2 zlib ];
|
||||||
|
|
Loading…
Reference in New Issue