git.iko.soy/typeable/nixpkgs
on master help sign in
gemConfig update for exiv and maxmind

Add the build flags for the native extension gems exiv2 and maxminddb.

commit6d84e807412c9c223657053af69fd6a2d608f9b9 authorStanisław Pitucha <stan.pitucha@envato.com> dateWed 23 Feb 2022, 21:17 (5 years ago) parent30ea86e
1 file changed+9−1
pkgs/development/ruby-modules/gem-config/default.nix+9−1
pkgs/development/ruby-modules/gem-config/default.nix+9−1
@@ -26,7 +26,7 @@
2626, file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz
2727, bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk
2828, bundler, libsass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie
29−, CoreServices, DarwinTools, cctools, libtool, discount
29+, CoreServices, DarwinTools, cctools, libtool, discount, exiv2, libmaxminddb
3030}@args:
3131
3232let
@@ -154,6 +154,10 @@ in
154154 '';
155155 };
156156
157+ exiv2 = attrs: {
158+ buildFlags = [ "--with-exiv2-lib=${exiv2}/lib" "--with-exiv2-include=${exiv2.dev}/include" ];
159+ };
160+
157161 fog-dnsimple = attrs:
158162 lib.optionalAttrs (lib.versionOlder attrs.version "1.0.1") {
159163 postInstall = ''
@@ -414,6 +418,10 @@ in
414418 '';
415419 };
416420
421+ maxmind_geoip2 = attrs: {
422+ buildFlags = [ "--with-maxminddb-lib=${libmaxminddb}/lib" "--with-maxminddb-include=${libmaxminddb}/include" ];
423+ };
424+
417425 metasploit-framework = attrs: {
418426 preInstall = ''
419427 export HOME=$TMPDIR