at 22.05-pre 686 lines 19 kB view raw
1# The standard set of gems in nixpkgs including potential fixes. 2# 3# The gemset is derived from two points of entry: 4# - An attrset describing a gem, including version, source and dependencies 5# This is just meta data, most probably automatically generated by a tool 6# like Bundix (https://github.com/aflatter/bundix). 7# { 8# name = "bundler"; 9# version = "1.6.5"; 10# sha256 = "1s4x0f5by9xs2y24jk6krq5ky7ffkzmxgr4z1nhdykdmpsi2zd0l"; 11# dependencies = [ "rake" ]; 12# } 13# - An optional derivation that may override how the gem is built. For popular 14# gems that don't behave correctly, fixes are already provided in the form of 15# derivations. 16# 17# This seperates "what to build" (the exact gem versions) from "how to build" 18# (to make gems behave if necessary). 19 20{ lib, fetchurl, writeScript, ruby, libkrb5, libxml2, libxslt, python2, stdenv, which 21, libiconv, postgresql, v8, clang, sqlite, zlib, imagemagick, lasem 22, pkg-config , ncurses, xapian, gpgme, util-linux, tzdata, icu, libffi 23, cmake, libssh2, openssl, libmysqlclient, git, perl, pcre, gecode_3, curl 24, msgpack, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem 25, cairo, re2, rake, gobject-introspection, gdk-pixbuf, zeromq, czmq, graphicsmagick, libcxx 26, file, libvirt, glib, vips, taglib, libopus, linux-pam, libidn, protobuf, fribidi, harfbuzz 27, bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk 28, bundler, libsass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie 29, CoreServices, DarwinTools, cctools 30}@args: 31 32let 33 rainbow_rake = buildRubyGem { 34 pname = "rake"; 35 gemName = "rake"; 36 source.sha256 = "01j8fc9bqjnrsxbppncai05h43315vmz9fwg28qdsgcjw9ck1d7n"; 37 type = "gem"; 38 version = "12.0.0"; 39 }; 40in 41 42{ 43 atk = attrs: { 44 dependencies = attrs.dependencies ++ [ "gobject-introspection" ]; 45 nativeBuildInputs = [ rake bundler pkg-config ] 46 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 47 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook atk ]; 48 }; 49 50 bundler = attrs: 51 let 52 templates = "${attrs.ruby.gemPath}/gems/${attrs.gemName}-${attrs.version}/lib/bundler/templates/"; 53 in { 54 # patching shebangs would fail on the templates/Executable file, so we 55 # temporarily remove the executable flag. 56 preFixup = "chmod -x $out/${templates}/Executable"; 57 postFixup = '' 58 chmod +x $out/${templates}/Executable 59 60 # Allows to load another bundler version 61 sed -i -e "s/activate_bin_path/bin_path/g" $out/bin/bundle 62 ''; 63 }; 64 65 cairo = attrs: { 66 nativeBuildInputs = [ pkg-config ] 67 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 68 buildInputs = [ gtk2 pcre xorg.libpthreadstubs xorg.libXdmcp]; 69 }; 70 71 cairo-gobject = attrs: { 72 nativeBuildInputs = [ pkg-config ] 73 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 74 buildInputs = [ cairo pcre xorg.libpthreadstubs xorg.libXdmcp ]; 75 }; 76 77 charlock_holmes = attrs: { 78 buildInputs = [ which icu zlib ]; 79 }; 80 81 cld3 = attrs: { 82 nativeBuildInputs = [ pkg-config ]; 83 buildInputs = [ protobuf ]; 84 }; 85 86 cocoapods-acknowledgements = attrs: { 87 dependencies = attrs.dependencies ++ [ "cocoapods" ]; 88 }; 89 90 cocoapods-deploy = attrs: { 91 dependencies = [ "cocoapods" ]; 92 }; 93 94 cocoapods-disable-podfile-validations = attrs: { 95 dependencies = [ "cocoapods" ]; 96 }; 97 98 cocoapods-generate = attrs: { 99 dependencies = attrs.dependencies ++ [ "cocoapods" ]; 100 }; 101 102 cocoapods-git_url_rewriter = attrs: { 103 dependencies = [ "cocoapods" ]; 104 }; 105 106 cocoapods-keys = attrs: { 107 dependencies = attrs.dependencies ++ [ "cocoapods" ]; 108 }; 109 110 cocoapods-open = attrs: { 111 dependencies = [ "cocoapods" ]; 112 }; 113 114 cocoapods-try-release-fix = attrs: { 115 dependencies = [ "cocoapods" ]; 116 }; 117 118 curb = attrs: { 119 buildInputs = [ curl ]; 120 }; 121 122 curses = attrs: { 123 buildInputs = [ ncurses ]; 124 }; 125 126 dep-selector-libgecode = attrs: { 127 USE_SYSTEM_GECODE = true; 128 postInstall = '' 129 installPath=$(cat $out/nix-support/gem-meta/install-path) 130 sed -i $installPath/lib/dep-selector-libgecode.rb -e 's@VENDORED_GECODE_DIR =.*@VENDORED_GECODE_DIR = "${gecode_3}"@' 131 ''; 132 }; 133 134 digest-sha3 = attrs: { 135 hardeningDisable = [ "format" ]; 136 }; 137 138 ethon = attrs: { 139 dontBuild = false; 140 postPatch = '' 141 substituteInPlace lib/ethon/curls/settings.rb \ 142 --replace "libcurl" "${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary}" 143 ''; 144 }; 145 146 fog-dnsimple = attrs: 147 lib.optionalAttrs (lib.versionOlder attrs.version "1.0.1") { 148 postInstall = '' 149 cd $(cat $out/nix-support/gem-meta/install-path) 150 rm {$out/bin,bin,../../bin}/{setup,console} 151 ''; 152 }; 153 154 redis-rack = attrs: { 155 dontBuild = false; 156 preBuild = '' 157 exec 3>&1 158 output="$(gem build $gemspec | tee >(cat - >&3))" 159 exec 3>&- 160 sed -i 's!"rake".freeze!!' $gemspec 161 ''; 162 }; 163 164 ffi-rzmq-core = attrs: { 165 postInstall = '' 166 installPath=$(cat $out/nix-support/gem-meta/install-path) 167 sed -i $installPath/lib/ffi-rzmq-core/libzmq.rb -e 's@inside_gem =.*@inside_gem = "${zeromq}/lib"@' 168 ''; 169 }; 170 171 mimemagic = attrs: { 172 FREEDESKTOP_MIME_TYPES_PATH = "${shared-mime-info}/share/mime/packages/freedesktop.org.xml"; 173 }; 174 175 mini_magick = attrs: { 176 postInstall = '' 177 installPath=$(cat $out/nix-support/gem-meta/install-path) 178 echo -e "\nENV['PATH'] += ':${graphicsmagick}/bin'\n" >> $installPath/lib/mini_magick/configuration.rb 179 ''; 180 }; 181 182 do_sqlite3 = attrs: { 183 buildInputs = [ sqlite ]; 184 }; 185 186 eventmachine = attrs: { 187 buildInputs = [ openssl ]; 188 }; 189 190 exif = attrs: { 191 buildFlags = [ "--with-exif-dir=${libexif}" ]; 192 buildInputs = [ libexif ]; 193 }; 194 195 ffi = attrs: { 196 nativeBuildInputs = [ pkg-config ]; 197 buildInputs = [ libffi ]; 198 }; 199 200 gdk_pixbuf2 = attrs: { 201 nativeBuildInputs = [ pkg-config bundler rake ] 202 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 203 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook gdk-pixbuf ]; 204 }; 205 206 gpgme = attrs: { 207 buildInputs = [ gpgme ]; 208 buildFlags = [ "--use-system-libraries" ]; 209 }; 210 211 gio2 = attrs: { 212 nativeBuildInputs = [ pkg-config ] 213 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 214 buildInputs = [ gtk2 pcre gobject-introspection ] ++ lib.optionals stdenv.isLinux [ util-linux libselinux libsepol ]; 215 }; 216 217 gitlab-markup = attrs: { meta.priority = 1; }; 218 219 gitlab-pg_query = attrs: lib.optionalAttrs (attrs.version == "1.3.1") { 220 dontBuild = false; 221 postPatch = '' 222 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 223 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/10-1.0.3"; 224 sha256 = "0jfij8apzxsdabl70j42xgd5f3ka1gdcrk764nccp66164gpcchk"; 225 }}';" ext/pg_query/extconf.rb 226 ''; 227 }; 228 229 pg_query = attrs: lib.optionalAttrs (attrs.version == "2.0.2") { 230 dontBuild = false; 231 postPatch = '' 232 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 233 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/13-2.0.2"; 234 sha256 = "0ms2s6hmy8qyzv4g1hj4i2p5fws1v8lrj73b2knwbp2ipd45yj7y"; 235 }}';" ext/pg_query/extconf.rb 236 ''; 237 } // lib.optionalAttrs (attrs.version == "1.3.0") { 238 # Needed for gitlab 239 dontBuild = false; 240 postPatch = '' 241 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 242 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/10-1.0.4"; 243 sha256 = "0f0kshhai0pnkqj0w4kgz3fssnvwidllc31n1fysxjjzdqlr1k48"; 244 }}';" ext/pg_query/extconf.rb 245 ''; 246 }; 247 248 glib2 = attrs: { 249 nativeBuildInputs = [ pkg-config ] 250 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 251 buildInputs = [ gtk2 pcre ]; 252 }; 253 254 gtk2 = attrs: { 255 nativeBuildInputs = [ 256 binutils pkg-config 257 ] ++ lib.optionals stdenv.isLinux [ 258 util-linux libselinux libsepol 259 ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 260 propagatedBuildInputs = [ 261 atk 262 gdk-pixbuf 263 fribidi 264 gobject-introspection 265 gtk2 266 harfbuzz 267 libdatrie 268 libthai 269 pcre 270 xorg.libpthreadstubs 271 xorg.libXdmcp 272 ]; 273 dontStrip = stdenv.isDarwin; 274 }; 275 276 gobject-introspection = attrs: { 277 nativeBuildInputs = [ pkg-config pcre ] 278 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 279 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook glib ]; 280 }; 281 282 grpc = attrs: { 283 nativeBuildInputs = [ pkg-config ]; 284 buildInputs = [ openssl ]; 285 hardeningDisable = [ "format" ]; 286 NIX_CFLAGS_COMPILE = toString [ 287 "-Wno-error=stringop-overflow" 288 "-Wno-error=implicit-fallthrough" 289 "-Wno-error=sizeof-pointer-memaccess" 290 "-Wno-error=cast-function-type" 291 "-Wno-error=class-memaccess" 292 "-Wno-error=ignored-qualifiers" 293 "-Wno-error=tautological-compare" 294 "-Wno-error=stringop-truncation" 295 ]; 296 dontBuild = false; 297 postPatch = '' 298 substituteInPlace Makefile \ 299 --replace '-Wno-invalid-source-encoding' "" 300 ''; 301 }; 302 303 hitimes = attrs: { 304 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 305 }; 306 307 iconv = attrs: { 308 buildFlags = lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}"; 309 }; 310 311 idn-ruby = attrs: { 312 buildInputs = [ libidn ]; 313 }; 314 315 # disable bundle install as it can't install anything in addition to what is 316 # specified in pkgs/applications/misc/jekyll/Gemfile anyway. Also do chmod_R 317 # to compensate for read-only files in site_template in nix store. 318 jekyll = attrs: { 319 postInstall = '' 320 installPath=$(cat $out/nix-support/gem-meta/install-path) 321 sed -i $installPath/lib/jekyll/commands/new.rb \ 322 -e 's@Exec.run("bundle", "install"@Exec.run("true"@' \ 323 -e 's@FileUtils.cp_r site_template + "/.", path@FileUtils.cp_r site_template + "/.", path; FileUtils.chmod_R "u+w", path@' 324 ''; 325 }; 326 327 # note that you need version >= v3.16.14.8, 328 # otherwise the gem will fail to link to the libv8 binary. 329 # see: https://github.com/cowboyd/libv8/pull/161 330 libv8 = attrs: { 331 buildInputs = [ which v8 python2 ]; 332 buildFlags = [ "--with-system-v8=true" ]; 333 dontBuild = false; 334 postPatch = '' 335 substituteInPlace ext/libv8/extconf.rb \ 336 --replace "location = Libv8::Location::Vendor.new" \ 337 "location = Libv8::Location::System.new" 338 ''; 339 }; 340 341 execjs = attrs: { 342 propagatedBuildInputs = [ v8 ]; 343 }; 344 345 libxml-ruby = attrs: { 346 buildFlags = [ 347 "--with-xml2-lib=${libxml2.out}/lib" 348 "--with-xml2-include=${libxml2.dev}/include/libxml2" 349 ]; 350 }; 351 352 mathematical = attrs: { 353 nativeBuildInputs = [ 354 ruby 355 cmake 356 bison 357 flex 358 pkg-config 359 python3 360 patchelf 361 ]; 362 363 buildInputs = [ 364 cairo 365 fribidi 366 gdk-pixbuf 367 glib 368 libxml2 369 pango 370 ]; 371 372 strictDeps = true; 373 374 # The ruby build script takes care of this 375 dontUseCmakeConfigure = true; 376 377 postInstall = '' 378 # Reduce output size by a lot, and remove some unnecessary references. 379 # The ext directory should only be required at build time, so 380 # can be deleted now. 381 rm -r $out/${ruby.gemPath}/gems/mathematical-${attrs.version}/ext \ 382 $out/${ruby.gemPath}/extensions/*/*/mathematical-${attrs.version}/gem_make.out 383 ''; 384 385 # For some reason 'mathematical.so' is missing cairo, glib, and 386 # lasem in its RPATH, add them explicitly here 387 postFixup = lib.optionalString stdenv.isLinux '' 388 soPath="$out/${ruby.gemPath}/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so" 389 rpath="$(patchelf --print-rpath "$soPath")" 390 patchelf --set-rpath "${lib.makeLibraryPath [ lasem glib cairo ]}:$rpath" "$soPath" 391 patchelf --replace-needed liblasem.so liblasem-0.4.so "$soPath" 392 ''; 393 }; 394 395 magic = attrs: { 396 buildInputs = [ file ]; 397 postInstall = '' 398 installPath=$(cat $out/nix-support/gem-meta/install-path) 399 sed -e 's@ENV\["MAGIC_LIB"\] ||@ENV\["MAGIC_LIB"\] || "${file}/lib/libmagic.so" ||@' -i $installPath/lib/magic/api.rb 400 ''; 401 }; 402 403 metasploit-framework = attrs: { 404 preInstall = '' 405 export HOME=$TMPDIR 406 ''; 407 }; 408 409 msgpack = attrs: { 410 buildInputs = [ msgpack ]; 411 }; 412 413 mysql = attrs: { 414 buildInputs = [ libmysqlclient zlib openssl ]; 415 }; 416 417 mysql2 = attrs: { 418 buildInputs = [ libmysqlclient zlib openssl ]; 419 }; 420 421 ncursesw = attrs: { 422 buildInputs = [ ncurses ]; 423 buildFlags = [ 424 "--with-cflags=-I${ncurses.dev}/include" 425 "--with-ldflags=-L${ncurses.out}/lib" 426 ]; 427 }; 428 429 nokogiri = attrs: { 430 buildFlags = [ 431 "--use-system-libraries" 432 "--with-zlib-lib=${zlib.out}/lib" 433 "--with-zlib-include=${zlib.dev}/include" 434 "--with-xml2-lib=${libxml2.out}/lib" 435 "--with-xml2-include=${libxml2.dev}/include/libxml2" 436 "--with-xslt-lib=${libxslt.out}/lib" 437 "--with-xslt-include=${libxslt.dev}/include" 438 "--with-exslt-lib=${libxslt.out}/lib" 439 "--with-exslt-include=${libxslt.dev}/include" 440 ] ++ lib.optionals stdenv.isDarwin [ 441 "--with-iconv-dir=${libiconv}" 442 "--with-opt-include=${libiconv}/include" 443 ]; 444 }; 445 446 openssl = attrs: { 447 buildInputs = [ openssl ]; 448 }; 449 450 opus-ruby = attrs: { 451 dontBuild = false; 452 postPatch = '' 453 substituteInPlace lib/opus-ruby.rb \ 454 --replace "ffi_lib 'opus'" \ 455 "ffi_lib '${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'" 456 ''; 457 }; 458 459 ovirt-engine-sdk = attrs: { 460 buildInputs = [ curl libxml2 ]; 461 }; 462 463 pango = attrs: { 464 nativeBuildInputs = [ 465 pkg-config 466 fribidi 467 harfbuzz 468 pcre 469 xorg.libpthreadstubs 470 xorg.libXdmcp 471 ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 472 buildInputs = [ libdatrie libthai ] 473 ++ lib.optionals stdenv.isLinux [ libselinux libsepol util-linux ]; 474 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook gtk2 ]; 475 }; 476 477 patron = attrs: { 478 buildInputs = [ curl ]; 479 }; 480 481 pcaprub = attrs: { 482 buildInputs = [ libpcap ]; 483 }; 484 485 pg = attrs: { 486 buildFlags = [ 487 "--with-pg-config=${postgresql}/bin/pg_config" 488 ]; 489 }; 490 491 puma = attrs: { 492 buildInputs = [ openssl ]; 493 }; 494 495 rainbow = attrs: { 496 buildInputs = [ rainbow_rake ]; 497 }; 498 499 rbczmq = { ... }: { 500 buildInputs = [ zeromq czmq ]; 501 buildFlags = [ "--with-system-libs" ]; 502 }; 503 504 rbnacl = spec: 505 if lib.versionOlder spec.version "6.0.0" then { 506 postInstall = '' 507 sed -i $(cat $out/nix-support/gem-meta/install-path)/lib/rbnacl.rb -e "2a \ 508 RBNACL_LIBSODIUM_GEM_LIB_PATH = '${libsodium.out}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}' 509 " 510 ''; 511 } else { 512 dontBuild = false; 513 postPatch = '' 514 substituteInPlace lib/rbnacl/sodium.rb \ 515 --replace 'ffi_lib ["sodium"' \ 516 'ffi_lib ["${libsodium}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}"' 517 ''; 518 }; 519 520 re2 = attrs: { 521 buildInputs = [ re2 ]; 522 }; 523 524 rmagick = attrs: { 525 nativeBuildInputs = [ pkg-config ]; 526 buildInputs = [ imagemagick which ]; 527 }; 528 529 rpam2 = attrs: { 530 buildInputs = [ linux-pam ]; 531 }; 532 533 ruby-libvirt = attrs: { 534 buildInputs = [ libvirt pkg-config ]; 535 buildFlags = [ 536 "--with-libvirt-include=${libvirt}/include" 537 "--with-libvirt-lib=${libvirt}/lib" 538 ]; 539 dontBuild = false; 540 postPatch = '' 541 # https://gitlab.com/libvirt/libvirt-ruby/-/commit/43543991832c9623c00395092bcfb9e178243ba4 542 substituteInPlace ext/libvirt/common.c \ 543 --replace 'st.h' 'ruby/st.h' 544 substituteInPlace ext/libvirt/domain.c \ 545 --replace 'st.h' 'ruby/st.h' 546 ''; 547 }; 548 549 ruby-lxc = attrs: { 550 buildInputs = [ lxc ]; 551 }; 552 553 ruby-terminfo = attrs: { 554 buildInputs = [ ncurses ]; 555 buildFlags = [ 556 "--with-cflags=-I${ncurses.dev}/include" 557 "--with-ldflags=-L${ncurses.out}/lib" 558 ]; 559 }; 560 561 ruby-vips = attrs: { 562 postInstall = '' 563 cd "$(cat $out/nix-support/gem-meta/install-path)" 564 565 substituteInPlace lib/vips.rb \ 566 --replace 'library_name("vips", 42)' '"${lib.getLib vips}/lib/libvips${stdenv.hostPlatform.extensions.sharedLibrary}"' \ 567 --replace 'library_name("glib-2.0", 0)' '"${glib.out}/lib/libglib-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"' \ 568 --replace 'library_name("gobject-2.0", 0)' '"${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"' 569 ''; 570 }; 571 572 rugged = attrs: { 573 nativeBuildInputs = [ cmake pkg-config which ]; 574 buildInputs = [ openssl libssh2 zlib ]; 575 dontUseCmakeConfigure = true; 576 }; 577 578 sassc = attrs: { 579 nativeBuildInputs = [ rake ]; 580 dontBuild = false; 581 SASS_LIBSASS_PATH = toString libsass; 582 postPatch = '' 583 substituteInPlace lib/sassc/native.rb \ 584 --replace 'gem_root = spec.gem_dir' 'gem_root = File.join(__dir__, "../../")' 585 ''; 586 } // (lib.optionalAttrs stdenv.isDarwin { 587 # https://github.com/NixOS/nixpkgs/issues/19098 588 buildFlags = [ "--disable-lto" ]; 589 }); 590 591 scrypt = attrs: lib.optionalAttrs stdenv.isDarwin { 592 dontBuild = false; 593 postPatch = '' 594 sed -i -e "s/-arch i386//" Rakefile ext/scrypt/Rakefile 595 ''; 596 }; 597 598 semian = attrs: { 599 buildInputs = [ openssl ]; 600 }; 601 602 sequel_pg = attrs: { 603 buildInputs = [ postgresql ]; 604 }; 605 606 snappy = attrs: { 607 buildInputs = [ args.snappy ]; 608 }; 609 610 sqlite3 = attrs: { 611 buildFlags = [ 612 "--with-sqlite3-include=${sqlite.dev}/include" 613 "--with-sqlite3-lib=${sqlite.out}/lib" 614 ]; 615 }; 616 617 rb-readline = attrs: { 618 dontBuild = false; 619 postPatch = '' 620 substituteInPlace lib/rbreadline.rb \ 621 --replace 'infocmp' '${ncurses}/bin/infocmp' 622 ''; 623 }; 624 625 taglib-ruby = attrs: { 626 buildInputs = [ taglib ]; 627 }; 628 629 timfel-krb5-auth = attrs: { 630 buildInputs = [ libkrb5 ]; 631 }; 632 633 tiny_tds = attrs: { 634 nativeBuildInputs = [ pkg-config openssl ]; 635 buildInputs = [ freetds ]; 636 }; 637 638 typhoeus = attrs: { 639 buildInputs = [ curl ]; 640 }; 641 642 tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") { 643 dontBuild = false; 644 postPatch = 645 let 646 path = if lib.versionAtLeast attrs.version "2.0" 647 then "lib/tzinfo/data_sources/zoneinfo_data_source.rb" 648 else "lib/tzinfo/zoneinfo_data_source.rb"; 649 in 650 '' 651 substituteInPlace ${path} \ 652 --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" 653 ''; 654 }; 655 656 uuid4r = attrs: { 657 buildInputs = [ which libossp_uuid ]; 658 }; 659 660 xapian-ruby = attrs: { 661 # use the system xapian 662 dontBuild = false; 663 nativeBuildInputs = [ rake pkg-config bundler ]; 664 buildInputs = [ xapian zlib ]; 665 postPatch = '' 666 cp ${./xapian-Rakefile} Rakefile 667 ''; 668 preInstall = '' 669 export XAPIAN_CONFIG=${xapian}/bin/xapian-config 670 ''; 671 }; 672 673 zlib = attrs: { 674 buildInputs = [ zlib ]; 675 }; 676 677 zookeeper = attrs: { 678 buildInputs = lib.optionals stdenv.isDarwin [ cctools ]; 679 dontBuild = false; 680 postPatch = '' 681 sed -i ext/extconf.rb -e "4a \ 682 FileUtils.cp '${./zookeeper-ftbfs-with-gcc-8.patch}', 'patches/zkc-3.4.5-gcc-8.patch' 683 " 684 ''; 685 }; 686}