uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
63
pkgs/development/libraries/libdbi-drivers/default.nix
Normal file
63
pkgs/development/libraries/libdbi-drivers/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib, stdenv, fetchurl, libdbi
|
||||
, libmysqlclient ? null
|
||||
, sqlite ? null
|
||||
, postgresql ? null
|
||||
}:
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libdbi-drivers";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libdbi-drivers/libdbi-drivers-${version}.tar.gz";
|
||||
sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3";
|
||||
};
|
||||
|
||||
buildInputs = [ libdbi sqlite postgresql ] ++ optional (libmysqlclient != null) libmysqlclient;
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure;
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
"--disable-docs"
|
||||
"--enable-libdbi"
|
||||
"--with-dbi-incdir=${libdbi}/include"
|
||||
"--with-dbi-libdir=${libdbi}/lib"
|
||||
] ++ optionals (libmysqlclient != null) [
|
||||
"--with-mysql"
|
||||
"--with-mysql-incdir=${getDev libmysqlclient}/include/mysql"
|
||||
"--with-mysql-libdir=${libmysqlclient}/lib/mysql"
|
||||
] ++ optionals (sqlite != null) [
|
||||
"--with-sqlite3"
|
||||
"--with-sqlite3-incdir=${sqlite.dev}/include/sqlite"
|
||||
"--with-sqlite3-libdir=${sqlite.out}/lib/sqlite"
|
||||
] ++ optionals (postgresql != null) [
|
||||
"--with-pgsql"
|
||||
"--with-pgsql_incdir=${postgresql}/include"
|
||||
"--with-pgsql_libdir=${postgresql.lib}/lib"
|
||||
];
|
||||
|
||||
installFlags = [ "DESTDIR=\${out}" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/$out/* $out
|
||||
DIR=$out/$out
|
||||
while rmdir $DIR 2>/dev/null; do
|
||||
DIR="$(dirname "$DIR")"
|
||||
done
|
||||
|
||||
# Remove the unneeded var/lib directories
|
||||
rm -rf $out/var
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://libdbi-drivers.sourceforge.net/";
|
||||
description = "Database drivers for libdbi";
|
||||
platforms = platforms.all;
|
||||
license = licenses.lgpl21;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue