git.iko.soy/typeable/nixpkgs
on master help sign in
xapian-ruby: link against correct xapian
commitb10fb4624b4d31a495aca99008f26777fb8501ad authorJörg Thalheim <joerg@thalheim.io> dateMon 6 Mar 2017, 20:23 (10 years ago) parent8cbba14
3 files changed+28−21
pkgs/development/libraries/xapian/default.nix+20−15 pkgs/development/ruby-modules/gem-config/default.nix+5−5 pkgs/top-level/all-packages.nix+3−1
pkgs/development/libraries/xapian/default.nix+20−15
@@ -1,23 +1,28 @@
11{ stdenv, fetchurl, libuuid, zlib }:
22
3−stdenv.mkDerivation rec {
4− name = "xapian-${version}";
5− version = "1.4.0";
3+let
4+ generic = version: sha256: stdenv.mkDerivation rec {
5+ name = "xapian-${version}";
66
7− src = fetchurl {
8− url = "http://oligarchy.co.uk/xapian/${version}/xapian-core-${version}.tar.xz";
9− sha256 = "0xv4da5rmqqzkkkzx2v3jwh5hz5zxhd2b7m8x30fk99a25blyn0h";
10− };
7+ src = fetchurl {
8+ url = "http://oligarchy.co.uk/xapian/${version}/xapian-core-${version}.tar.xz";
9+ inherit sha256;
10+ };
1111
12− outputs = [ "out" "doc" ];
12+ outputs = [ "out" "doc" ];
1313
14− buildInputs = [ libuuid zlib ];
14+ buildInputs = [ libuuid zlib ];
1515
16− meta = {
17− description = "Search engine library";
18− homepage = http://xapian.org/;
19− license = stdenv.lib.licenses.gpl2Plus;
20− maintainers = [ stdenv.lib.maintainers.chaoflow ];
21− platforms = stdenv.lib.platforms.unix;
16+ meta = {
17+ description = "Search engine library";
18+ homepage = http://xapian.org/;
19+ license = stdenv.lib.licenses.gpl2Plus;
20+ maintainers = [ stdenv.lib.maintainers.chaoflow ];
21+ platforms = stdenv.lib.platforms.unix;
22+ };
2223 };
24+in {
25+ # used by xapian-ruby
26+ xapian_1_2_22 = generic "1.2.22" "0zsji22n0s7cdnbgj0kpil05a6bgm5cfv0mvx12d8ydg7z58g6r6";
27+ xapian_1_4_0 = generic "1.4.0" "0xv4da5rmqqzkkkzx2v3jwh5hz5zxhd2b7m8x30fk99a25blyn0h";
2328}
pkgs/development/ruby-modules/gem-config/default.nix+5−5
@@ -19,7 +19,7 @@
1919
2020{ lib, fetchurl, writeScript, ruby, kerberos, libxml2, libxslt, python, stdenv, which
2121, libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick
22−, pkgconfig , ncurses, xapian, gpgme, utillinux, fetchpatch, tzdata, icu, libffi
22+, pkgconfig , ncurses, xapian_1_2_22, gpgme, utillinux, fetchpatch, tzdata, icu, libffi
2323, cmake, libssh2, openssl, mysql, darwin, git, perl, gecode_3, curl
2424, libmsgpack, qt48, libsodium, snappy, libossp_uuid, lxc
2525}@args:
@@ -89,7 +89,7 @@ in
8989 msgpack = attrs: {
9090 buildInputs = [ libmsgpack ];
9191 };
92−
92+
9393 mysql = attrs: {
9494 buildInputs = [ mysql.lib zlib openssl ];
9595 };
@@ -218,7 +218,7 @@ in
218218 --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
219219 '';
220220 };
221−
221+
222222 uuid4r = attrs: {
223223 buildInputs = [ which libossp_uuid ];
224224 };
@@ -226,12 +226,12 @@ in
226226 xapian-ruby = attrs: {
227227 # use the system xapian
228228 dontBuild = false;
229− buildInputs = [ xapian pkgconfig zlib ];
229+ buildInputs = [ xapian_1_2_22 pkgconfig zlib ];
230230 postPatch = ''
231231 cp ${./xapian-Rakefile} Rakefile
232232 '';
233233 preInstall = ''
234− export XAPIAN_CONFIG=${xapian}/bin/xapian-config
234+ export XAPIAN_CONFIG=${xapian_1_2_22}/bin/xapian-config
235235 '';
236236 };
237237
pkgs/top-level/all-packages.nix+3−1
@@ -10044,7 +10044,9 @@ with pkgs;
1004410044
1004510045 x265 = callPackage ../development/libraries/x265 { };
1004610046
10047− xapian = callPackage ../development/libraries/xapian { };
10047+ inherit (callPackage ../development/libraries/xapian { })
10048+ xapian_1_2_22 xapian_1_4_0;
10049+ xapian = xapian_1_4_0;
1004810050
1004910051 xapian-omega = callPackage ../development/libraries/xapian/tools/omega {
1005010052 libmagic = file;