c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
90 lines
2.8 KiB
Nix
90 lines
2.8 KiB
Nix
{stdenv, fetchurl, libedit, ncurses, automake, autoconf, libtool
|
|
,
|
|
# icu = null: use icu which comes with firebird
|
|
|
|
# icu = pkgs.icu => you may have trouble sharing database files with windows
|
|
# users if "Collation unicode" columns are being used
|
|
# windows icu version is *30.dll, however neither the icu 3.0 nor the 3.6
|
|
# sources look close to what ships with this package.
|
|
# Thus I think its best to trust firebird devs and use their version
|
|
|
|
# icu version missmatch may cause such error when selecting from a table:
|
|
# "Collation unicode for character set utf8 is not installed"
|
|
|
|
# icu 3.0 can still be build easily by nix (by dropping the #elif case and
|
|
# make | make)
|
|
icu ? null
|
|
|
|
, superServer ? false
|
|
, port ? 3050
|
|
, serviceName ? "gds_db"
|
|
}:
|
|
|
|
/*
|
|
there are 3 ways to use firebird:
|
|
a) superserver
|
|
- one process, one thread for each connection
|
|
b) classic
|
|
- is built by default
|
|
- one process for each connection
|
|
- on linux direct io operations (?)
|
|
c) embedded.
|
|
|
|
manual says that you usually don't notice the difference between a and b.
|
|
|
|
I'm only interested in the embedder shared libary for now.
|
|
So everything isn't tested yet
|
|
|
|
*/
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.5.2.26540-0";
|
|
name = "firebird-${version}";
|
|
|
|
# enableParallelBuilding = false; build fails
|
|
|
|
# http://tracker.firebirdsql.org/browse/CORE-3246
|
|
preConfigure = ''
|
|
makeFlags="$makeFlags CPU=$NIX_BUILD_CORES"
|
|
'';
|
|
|
|
configureFlags =
|
|
[ "--with-serivec-port=${builtins.toString port}"
|
|
"--with-service-name=${serviceName}"
|
|
# "--disable-static"
|
|
"--with-system-editline"
|
|
"--with-fblog=/var/log/firebird"
|
|
"--with-fbconf=/etc/firebird"
|
|
"--with-fbsecure-db=/var/db/firebird/system"
|
|
]
|
|
++ (stdenv.lib.optional (icu != null) "--with-system-icu")
|
|
++ (stdenv.lib.optional superServer "--enable-superserver");
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2";
|
|
sha256 = "0887a813wffp44hnc2gmwbc4ylpqw3fh3hz3bf6q3648344a9fdv";
|
|
};
|
|
|
|
# configurePhase = ''
|
|
# sed -i 's@cp /usr/share/automake-.*@@' autogen.sh
|
|
# sh autogen.sh $configureFlags --prefix=$out
|
|
# '';
|
|
buildInputs = [libedit icu automake autoconf libtool];
|
|
|
|
# TODO: Probably this hase to be tidied up..
|
|
# make install requires beeing. disabling the root checks
|
|
# dosen't work. Copying the files manually which can be found
|
|
# in ubuntu -dev -classic, -example packages:
|
|
# maybe some of those files can be removed again
|
|
installPhase = ''cp -r gen/firebird $out'';
|
|
|
|
meta = {
|
|
description = "SQL relational database management system";
|
|
homepage = http://www.firebirdnews.org;
|
|
license = ["IDPL" "Interbase-1.0"];
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
|
|
}
|