2021-05-16 15:29:01 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libedit, autoreconfHook, zlib, unzip, libtommath, libtomcrypt, icu, superServer ? false }:
|
|
|
|
|
|
|
|
let base = {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "firebird";
|
2010-06-03 17:19:56 +02:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "SQL relational database management system";
|
|
|
|
homepage = "https://firebirdsql.org/";
|
|
|
|
changelog = "https://github.com/FirebirdSQL/firebird/blob/master/CHANGELOG.md";
|
|
|
|
license = [ "IDPL" "Interbase-1.0" ];
|
|
|
|
platforms = platforms.linux;
|
2021-11-03 01:38:27 +01:00
|
|
|
maintainers = with maintainers; [ marcweber ];
|
2021-05-16 15:29:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ libedit icu ];
|
2013-07-30 16:33:46 +02:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath [ icu ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-system-editline"
|
|
|
|
] ++ (lib.optional superServer "--enable-superserver");
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r gen/Release/firebird/* $out
|
|
|
|
runHook postInstall
|
2013-07-30 16:33:46 +02:00
|
|
|
'';
|
|
|
|
|
2021-05-23 15:27:54 +02:00
|
|
|
}; in rec {
|
2010-06-03 17:19:56 +02:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
firebird_2_5 = stdenv.mkDerivation (base // rec {
|
|
|
|
version = "2.5.9";
|
2016-02-09 03:21:31 +01:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
|
|
|
rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
|
|
|
sha256 = "sha256-YyvlMeBux80OpVhsCv+6IVxKXFRsgdr+1siupMR13JM=";
|
|
|
|
};
|
2010-06-03 17:19:56 +02:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
configureFlags = base.configureFlags ++ [ "--with-system-icu" ];
|
2010-06-03 17:19:56 +02:00
|
|
|
|
2021-05-16 15:29:01 +02:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r gen/firebird/* $out
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = base.meta // { platforms = [ "x86_64-linux" ]; };
|
|
|
|
});
|
|
|
|
|
|
|
|
firebird_3 = stdenv.mkDerivation (base // rec {
|
|
|
|
version = "3.0.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
|
|
|
rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
|
|
|
sha256 = "sha256-8nGan10qjW8dFF89BL/tUWtwMGhahBiODbOqRrHSrbs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = base.buildInputs ++ [ zlib libtommath ];
|
|
|
|
|
|
|
|
meta = base.meta // { platforms = [ "x86_64-linux" ]; };
|
|
|
|
});
|
|
|
|
|
|
|
|
firebird_4 = stdenv.mkDerivation (base // rec {
|
2021-05-23 15:27:54 +02:00
|
|
|
version = "4.0.0";
|
2021-05-16 15:29:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
2021-05-23 15:27:54 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-a4ex19FMfiJsUEhWUYd2YXKgJ24Jnpoab2t6x9sUuyQ=";
|
2021-05-16 15:29:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = base.buildInputs ++ [ zlib unzip libtommath libtomcrypt ];
|
|
|
|
});
|
2010-06-03 17:19:56 +02:00
|
|
|
|
2021-05-23 15:27:54 +02:00
|
|
|
firebird = firebird_4;
|
2010-06-03 17:19:56 +02:00
|
|
|
}
|