Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 31 lines 840 B view raw
1{ stdenv, fetchurl, buildPerlPackage, perl, DBI, sqlite }: 2 3buildPerlPackage rec { 4 name = "DBD-SQLite-1.58"; 5 6 src = fetchurl { 7 url = mirror://cpan/authors/id/I/IS/ISHIGAKI/DBD-SQLite-1.58.tar.gz; 8 sha256 = "0fqx386jgs9mmrknr7smmzapf07izgivza7x08lfm39ks2cxs83i"; 9 }; 10 11 propagatedBuildInputs = [ DBI ]; 12 buildInputs = [ sqlite ]; 13 14 patches = [ 15 # Support building against our own sqlite. 16 ./external-sqlite.patch 17 ]; 18 19 makeMakerFlags = "SQLITE_INC=${sqlite.dev}/include SQLITE_LIB=${sqlite.out}/lib"; 20 21 postInstall = '' 22 # Get rid of a pointless copy of the SQLite sources. 23 rm -rf $out/${perl.libPrefix}/*/*/auto/share 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Self Contained SQLite RDBMS in a DBI Driver"; 28 license = with licenses; [ artistic1 gpl1Plus ]; 29 platforms = platforms.unix; 30 }; 31}