at 17.09-beta 43 lines 1.1 kB view raw
1{ stdenv, fetchurl, buildPerlPackage, DBI, sqlite }: 2 3buildPerlPackage rec { 4 name = "DBD-SQLite-1.50"; 5 6 src = fetchurl { 7 url = "mirror://cpan/authors/id/I/IS/ISHIGAKI/${name}.tar.gz"; 8 sha256 = "1qcw2nzla03ywrl6mx1qklvbc8n5bn4gxqbjnvadfkwlffmi7i9s"; 9 }; 10 11 propagatedBuildInputs = [ DBI ]; 12 13 makeMakerFlags = "SQLITE_LOCATION=${sqlite.dev}"; 14 15 patches = [ 16 # Support building against our own sqlite. 17 ./external-sqlite.patch 18 ]; 19 20 sqlite_dev = sqlite.dev; 21 sqlite_out = sqlite.out; 22 postPatch = "substituteAllInPlace Makefile.PL; cat Makefile.PL"; 23 24 preBuild = 25 '' 26 substituteInPlace Makefile --replace -L/usr/lib "" 27 ''; 28 29 postInstall = 30 '' 31 # Prevent warnings from `strip'. 32 chmod -R u+w $out 33 34 # Get rid of a pointless copy of the SQLite sources. 35 rm -rf $out/lib/perl5/site_perl/*/*/auto/share 36 ''; 37 38 # Disabled because the tests can randomly fail due to timeouts 39 # (e.g. "database is locked(5) at dbdimp.c line 402 at t/07busy.t"). 40 #doCheck = false; 41 42 meta.platforms = stdenv.lib.platforms.unix; 43}