nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 694 lines 20 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, libtool, discount, exiv2, libmaxminddb 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 rdiscount = attrs: { 139 # Use discount from nixpkgs instead of vendored version 140 dontBuild = false; 141 buildInputs = [ discount ]; 142 patches = [ 143 # Adapted from Debian: 144 # https://sources.debian.org/data/main/r/ruby-rdiscount/2.1.8-1/debian/patches/01_use-system-libmarkdown.patch 145 ./rdiscount-use-nixpkgs-libmarkdown.patch 146 ]; 147 }; 148 149 ethon = attrs: { 150 dontBuild = false; 151 postPatch = '' 152 substituteInPlace lib/ethon/curls/settings.rb \ 153 --replace "libcurl" "${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary}" 154 ''; 155 }; 156 157 exiv2 = attrs: { 158 buildFlags = [ "--with-exiv2-lib=${exiv2}/lib" "--with-exiv2-include=${exiv2.dev}/include" ]; 159 }; 160 161 fog-dnsimple = attrs: 162 lib.optionalAttrs (lib.versionOlder attrs.version "1.0.1") { 163 postInstall = '' 164 cd $(cat $out/nix-support/gem-meta/install-path) 165 rm {$out/bin,bin,../../bin}/{setup,console} 166 ''; 167 }; 168 169 redis-rack = attrs: { 170 dontBuild = false; 171 preBuild = '' 172 exec 3>&1 173 output="$(gem build $gemspec | tee >(cat - >&3))" 174 exec 3>&- 175 sed -i 's!"rake".freeze!!' $gemspec 176 ''; 177 }; 178 179 ffi-rzmq-core = attrs: { 180 postInstall = '' 181 installPath=$(cat $out/nix-support/gem-meta/install-path) 182 sed -i $installPath/lib/ffi-rzmq-core/libzmq.rb -e 's@inside_gem =.*@inside_gem = "${zeromq}/lib"@' 183 ''; 184 }; 185 186 mimemagic = attrs: { 187 FREEDESKTOP_MIME_TYPES_PATH = "${shared-mime-info}/share/mime/packages/freedesktop.org.xml"; 188 }; 189 190 mini_magick = attrs: { 191 postInstall = '' 192 installPath=$(cat $out/nix-support/gem-meta/install-path) 193 echo -e "\nENV['PATH'] += ':${graphicsmagick}/bin'\n" >> $installPath/lib/mini_magick/configuration.rb 194 ''; 195 }; 196 197 do_sqlite3 = attrs: { 198 buildInputs = [ sqlite ]; 199 }; 200 201 eventmachine = attrs: { 202 buildInputs = [ openssl ]; 203 }; 204 205 exif = attrs: { 206 buildFlags = [ "--with-exif-dir=${libexif}" ]; 207 buildInputs = [ libexif ]; 208 }; 209 210 ffi = attrs: { 211 nativeBuildInputs = [ pkg-config ]; 212 buildInputs = [ libffi ]; 213 }; 214 215 gdk_pixbuf2 = attrs: { 216 nativeBuildInputs = [ pkg-config bundler rake ] 217 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 218 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook gdk-pixbuf ]; 219 }; 220 221 gpgme = attrs: { 222 buildInputs = [ gpgme ]; 223 buildFlags = [ "--use-system-libraries" ]; 224 }; 225 226 gio2 = attrs: { 227 nativeBuildInputs = [ pkg-config ] 228 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 229 buildInputs = [ gtk2 pcre gobject-introspection ] ++ lib.optionals stdenv.isLinux [ util-linux libselinux libsepol ]; 230 }; 231 232 gitlab-markup = attrs: { meta.priority = 1; }; 233 234 gitlab-pg_query = attrs: lib.optionalAttrs (attrs.version == "1.3.1") { 235 dontBuild = false; 236 postPatch = '' 237 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 238 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/10-1.0.3"; 239 sha256 = "0jfij8apzxsdabl70j42xgd5f3ka1gdcrk764nccp66164gpcchk"; 240 }}';" ext/pg_query/extconf.rb 241 ''; 242 }; 243 244 pg_query = attrs: lib.optionalAttrs (attrs.version == "2.0.2") { 245 dontBuild = false; 246 postPatch = '' 247 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 248 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/13-2.0.2"; 249 sha256 = "0ms2s6hmy8qyzv4g1hj4i2p5fws1v8lrj73b2knwbp2ipd45yj7y"; 250 }}';" ext/pg_query/extconf.rb 251 ''; 252 } // lib.optionalAttrs (attrs.version == "1.3.0") { 253 # Needed for gitlab 254 dontBuild = false; 255 postPatch = '' 256 sed -i "s;'https://codeload.github.com.*';'${fetchurl { 257 url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/10-1.0.4"; 258 sha256 = "0f0kshhai0pnkqj0w4kgz3fssnvwidllc31n1fysxjjzdqlr1k48"; 259 }}';" ext/pg_query/extconf.rb 260 ''; 261 }; 262 263 glib2 = attrs: { 264 nativeBuildInputs = [ pkg-config ] 265 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 266 buildInputs = [ gtk2 pcre ]; 267 }; 268 269 gtk2 = attrs: { 270 nativeBuildInputs = [ 271 binutils pkg-config 272 ] ++ lib.optionals stdenv.isLinux [ 273 util-linux libselinux libsepol 274 ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 275 propagatedBuildInputs = [ 276 atk 277 gdk-pixbuf 278 fribidi 279 gobject-introspection 280 gtk2 281 harfbuzz 282 libdatrie 283 libthai 284 pcre 285 xorg.libpthreadstubs 286 xorg.libXdmcp 287 ]; 288 dontStrip = stdenv.isDarwin; 289 }; 290 291 gobject-introspection = attrs: { 292 nativeBuildInputs = [ pkg-config pcre ] 293 ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 294 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook glib ]; 295 }; 296 297 grpc = attrs: { 298 nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin libtool; 299 buildInputs = [ openssl ]; 300 hardeningDisable = [ "format" ]; 301 NIX_CFLAGS_COMPILE = toString [ 302 "-Wno-error=stringop-overflow" 303 "-Wno-error=implicit-fallthrough" 304 "-Wno-error=sizeof-pointer-memaccess" 305 "-Wno-error=cast-function-type" 306 "-Wno-error=class-memaccess" 307 "-Wno-error=ignored-qualifiers" 308 "-Wno-error=tautological-compare" 309 "-Wno-error=stringop-truncation" 310 ]; 311 dontBuild = false; 312 postPatch = '' 313 substituteInPlace Makefile \ 314 --replace '-Wno-invalid-source-encoding' "" 315 '' + lib.optionalString stdenv.isDarwin '' 316 substituteInPlace src/ruby/ext/grpc/extconf.rb \ 317 --replace "ENV['AR'] = 'libtool -o' if RUBY_PLATFORM =~ /darwin/" "" 318 ''; 319 }; 320 321 hitimes = attrs: { 322 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 323 }; 324 325 iconv = attrs: { 326 buildFlags = lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}"; 327 }; 328 329 idn-ruby = attrs: { 330 buildInputs = [ libidn ]; 331 }; 332 333 # disable bundle install as it can't install anything in addition to what is 334 # specified in pkgs/applications/misc/jekyll/Gemfile anyway. Also do chmod_R 335 # to compensate for read-only files in site_template in nix store. 336 jekyll = attrs: { 337 postInstall = '' 338 installPath=$(cat $out/nix-support/gem-meta/install-path) 339 sed -i $installPath/lib/jekyll/commands/new.rb \ 340 -e 's@Exec.run("bundle", "install"@Exec.run("true"@' \ 341 -e 's@FileUtils.cp_r site_template + "/.", path@FileUtils.cp_r site_template + "/.", path; FileUtils.chmod_R "u+w", path@' 342 ''; 343 }; 344 345 # note that you need version >= v3.16.14.8, 346 # otherwise the gem will fail to link to the libv8 binary. 347 # see: https://github.com/cowboyd/libv8/pull/161 348 libv8 = attrs: { 349 buildInputs = [ which v8 python2 ]; 350 buildFlags = [ "--with-system-v8=true" ]; 351 dontBuild = false; 352 postPatch = '' 353 substituteInPlace ext/libv8/extconf.rb \ 354 --replace "location = Libv8::Location::Vendor.new" \ 355 "location = Libv8::Location::System.new" 356 ''; 357 }; 358 359 execjs = attrs: { 360 propagatedBuildInputs = [ v8 ]; 361 }; 362 363 libxml-ruby = attrs: { 364 buildFlags = [ 365 "--with-xml2-lib=${libxml2.out}/lib" 366 "--with-xml2-include=${libxml2.dev}/include/libxml2" 367 ]; 368 }; 369 370 mathematical = attrs: { 371 nativeBuildInputs = [ 372 ruby 373 cmake 374 bison 375 flex 376 pkg-config 377 python3 378 patchelf 379 ]; 380 381 buildInputs = [ 382 cairo 383 fribidi 384 gdk-pixbuf 385 glib 386 libxml2 387 pango 388 ]; 389 390 strictDeps = true; 391 392 # The ruby build script takes care of this 393 dontUseCmakeConfigure = true; 394 395 postInstall = '' 396 # Reduce output size by a lot, and remove some unnecessary references. 397 # The ext directory should only be required at build time, so 398 # can be deleted now. 399 rm -r $out/${ruby.gemPath}/gems/mathematical-${attrs.version}/ext \ 400 $out/${ruby.gemPath}/extensions/*/*/mathematical-${attrs.version}/gem_make.out 401 ''; 402 403 # For some reason 'mathematical.so' is missing cairo, glib, and 404 # lasem in its RPATH, add them explicitly here 405 postFixup = lib.optionalString stdenv.isLinux '' 406 soPath="$out/${ruby.gemPath}/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so" 407 rpath="$(patchelf --print-rpath "$soPath")" 408 patchelf --set-rpath "${lib.makeLibraryPath [ lasem glib cairo ]}:$rpath" "$soPath" 409 patchelf --replace-needed liblasem.so liblasem-0.4.so "$soPath" 410 ''; 411 }; 412 413 magic = attrs: { 414 buildInputs = [ file ]; 415 postInstall = '' 416 installPath=$(cat $out/nix-support/gem-meta/install-path) 417 sed -e 's@ENV\["MAGIC_LIB"\] ||@ENV\["MAGIC_LIB"\] || "${file}/lib/libmagic.so" ||@' -i $installPath/lib/magic/api.rb 418 ''; 419 }; 420 421 maxmind_geoip2 = attrs: { 422 buildFlags = [ "--with-maxminddb-lib=${libmaxminddb}/lib" "--with-maxminddb-include=${libmaxminddb}/include" ]; 423 }; 424 425 metasploit-framework = attrs: { 426 preInstall = '' 427 export HOME=$TMPDIR 428 ''; 429 }; 430 431 msgpack = attrs: { 432 buildInputs = [ msgpack ]; 433 }; 434 435 mysql = attrs: { 436 buildInputs = [ libmysqlclient zlib openssl ]; 437 }; 438 439 mysql2 = attrs: { 440 buildInputs = [ libmysqlclient zlib openssl ]; 441 }; 442 443 ncursesw = attrs: { 444 buildInputs = [ ncurses ]; 445 buildFlags = [ 446 "--with-cflags=-I${ncurses.dev}/include" 447 "--with-ldflags=-L${ncurses.out}/lib" 448 ]; 449 }; 450 451 nokogiri = attrs: { 452 buildFlags = [ 453 "--use-system-libraries" 454 "--with-zlib-lib=${zlib.out}/lib" 455 "--with-zlib-include=${zlib.dev}/include" 456 "--with-xml2-lib=${libxml2.out}/lib" 457 "--with-xml2-include=${libxml2.dev}/include/libxml2" 458 "--with-xslt-lib=${libxslt.out}/lib" 459 "--with-xslt-include=${libxslt.dev}/include" 460 "--with-exslt-lib=${libxslt.out}/lib" 461 "--with-exslt-include=${libxslt.dev}/include" 462 ] ++ lib.optionals stdenv.isDarwin [ 463 "--with-iconv-dir=${libiconv}" 464 "--with-opt-include=${libiconv}/include" 465 ]; 466 }; 467 468 openssl = attrs: { 469 buildInputs = [ openssl ]; 470 }; 471 472 opus-ruby = attrs: { 473 dontBuild = false; 474 postPatch = '' 475 substituteInPlace lib/opus-ruby.rb \ 476 --replace "ffi_lib 'opus'" \ 477 "ffi_lib '${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'" 478 ''; 479 }; 480 481 ovirt-engine-sdk = attrs: { 482 buildInputs = [ curl libxml2 ]; 483 }; 484 485 pango = attrs: { 486 nativeBuildInputs = [ 487 pkg-config 488 fribidi 489 harfbuzz 490 pcre 491 xorg.libpthreadstubs 492 xorg.libXdmcp 493 ] ++ lib.optionals stdenv.isDarwin [ DarwinTools ]; 494 buildInputs = [ libdatrie libthai ] 495 ++ lib.optionals stdenv.isLinux [ libselinux libsepol util-linux ]; 496 propagatedBuildInputs = [ gobject-introspection wrapGAppsHook gtk2 ]; 497 }; 498 499 patron = attrs: { 500 buildInputs = [ curl ]; 501 }; 502 503 pcaprub = attrs: { 504 buildInputs = [ libpcap ]; 505 }; 506 507 pg = attrs: { 508 buildFlags = [ 509 "--with-pg-config=${postgresql}/bin/pg_config" 510 ]; 511 }; 512 513 puma = attrs: { 514 buildInputs = [ openssl ]; 515 }; 516 517 rainbow = attrs: { 518 buildInputs = [ rainbow_rake ]; 519 }; 520 521 rbczmq = { ... }: { 522 buildInputs = [ zeromq czmq ]; 523 buildFlags = [ "--with-system-libs" ]; 524 }; 525 526 rbnacl = spec: 527 if lib.versionOlder spec.version "6.0.0" then { 528 postInstall = '' 529 sed -i $(cat $out/nix-support/gem-meta/install-path)/lib/rbnacl.rb -e "2a \ 530 RBNACL_LIBSODIUM_GEM_LIB_PATH = '${libsodium.out}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}' 531 " 532 ''; 533 } else { 534 dontBuild = false; 535 postPatch = '' 536 substituteInPlace lib/rbnacl/sodium.rb \ 537 --replace 'ffi_lib ["sodium"' \ 538 'ffi_lib ["${libsodium}/lib/libsodium${stdenv.hostPlatform.extensions.sharedLibrary}"' 539 ''; 540 }; 541 542 re2 = attrs: { 543 buildInputs = [ re2 ]; 544 }; 545 546 rmagick = attrs: { 547 nativeBuildInputs = [ pkg-config ]; 548 buildInputs = [ imagemagick which ]; 549 }; 550 551 rpam2 = attrs: { 552 buildInputs = [ linux-pam ]; 553 }; 554 555 ruby-libvirt = attrs: { 556 buildInputs = [ libvirt pkg-config ]; 557 buildFlags = [ 558 "--with-libvirt-include=${libvirt}/include" 559 "--with-libvirt-lib=${libvirt}/lib" 560 ]; 561 }; 562 563 ruby-lxc = attrs: { 564 buildInputs = [ lxc ]; 565 }; 566 567 ruby-terminfo = attrs: { 568 buildInputs = [ ncurses ]; 569 buildFlags = [ 570 "--with-cflags=-I${ncurses.dev}/include" 571 "--with-ldflags=-L${ncurses.out}/lib" 572 ]; 573 }; 574 575 ruby-vips = attrs: { 576 postInstall = '' 577 cd "$(cat $out/nix-support/gem-meta/install-path)" 578 579 substituteInPlace lib/vips.rb \ 580 --replace 'library_name("vips", 42)' '"${lib.getLib vips}/lib/libvips${stdenv.hostPlatform.extensions.sharedLibrary}"' \ 581 --replace 'library_name("glib-2.0", 0)' '"${glib.out}/lib/libglib-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"' \ 582 --replace 'library_name("gobject-2.0", 0)' '"${glib.out}/lib/libgobject-2.0${stdenv.hostPlatform.extensions.sharedLibrary}"' 583 ''; 584 }; 585 586 rugged = attrs: { 587 nativeBuildInputs = [ cmake pkg-config which ] ++ lib.optional stdenv.isDarwin libiconv; 588 buildInputs = [ openssl libssh2 zlib ]; 589 dontUseCmakeConfigure = true; 590 }; 591 592 sassc = attrs: { 593 nativeBuildInputs = [ rake ]; 594 dontBuild = false; 595 SASS_LIBSASS_PATH = toString libsass; 596 postPatch = '' 597 substituteInPlace lib/sassc/native.rb \ 598 --replace 'gem_root = spec.gem_dir' 'gem_root = File.join(__dir__, "../../")' 599 ''; 600 } // (lib.optionalAttrs stdenv.isDarwin { 601 # https://github.com/NixOS/nixpkgs/issues/19098 602 buildFlags = [ "--disable-lto" ]; 603 }); 604 605 scrypt = attrs: lib.optionalAttrs stdenv.isDarwin { 606 dontBuild = false; 607 postPatch = '' 608 sed -i -e "s/-arch i386//" Rakefile ext/scrypt/Rakefile 609 ''; 610 }; 611 612 semian = attrs: { 613 buildInputs = [ openssl ]; 614 }; 615 616 sequel_pg = attrs: { 617 buildInputs = [ postgresql ]; 618 }; 619 620 snappy = attrs: { 621 buildInputs = [ args.snappy ]; 622 }; 623 624 sqlite3 = attrs: { 625 buildFlags = [ 626 "--with-sqlite3-include=${sqlite.dev}/include" 627 "--with-sqlite3-lib=${sqlite.out}/lib" 628 ]; 629 }; 630 631 rb-readline = attrs: { 632 dontBuild = false; 633 postPatch = '' 634 substituteInPlace lib/rbreadline.rb \ 635 --replace 'infocmp' '${ncurses}/bin/infocmp' 636 ''; 637 }; 638 639 taglib-ruby = attrs: { 640 buildInputs = [ taglib ]; 641 }; 642 643 timfel-krb5-auth = attrs: { 644 buildInputs = [ libkrb5 ]; 645 }; 646 647 tiny_tds = attrs: { 648 nativeBuildInputs = [ pkg-config openssl ]; 649 buildInputs = [ freetds ]; 650 }; 651 652 typhoeus = attrs: { 653 buildInputs = [ curl ]; 654 }; 655 656 tzinfo = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") { 657 dontBuild = false; 658 postPatch = 659 let 660 path = if lib.versionAtLeast attrs.version "2.0" 661 then "lib/tzinfo/data_sources/zoneinfo_data_source.rb" 662 else "lib/tzinfo/zoneinfo_data_source.rb"; 663 in 664 '' 665 substituteInPlace ${path} \ 666 --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" 667 ''; 668 }; 669 670 uuid4r = attrs: { 671 buildInputs = [ which libossp_uuid ]; 672 }; 673 674 xapian-ruby = attrs: { 675 # use the system xapian 676 dontBuild = false; 677 nativeBuildInputs = [ rake pkg-config bundler ]; 678 buildInputs = [ xapian zlib ]; 679 postPatch = '' 680 cp ${./xapian-Rakefile} Rakefile 681 ''; 682 preInstall = '' 683 export XAPIAN_CONFIG=${xapian}/bin/xapian-config 684 ''; 685 }; 686 687 zlib = attrs: { 688 buildInputs = [ zlib ]; 689 }; 690 691 zookeeper = attrs: { 692 buildInputs = lib.optionals stdenv.isDarwin [ cctools ]; 693 }; 694}