2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libedit, autoreconfHook, zlib, unzip, libtommath, libtomcrypt, icu, superServer ? false }:
|
|
|
|
|
|
|
|
let base = {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "firebird";
|
|
|
|
|
2021-05-20 23:08:51 +00: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-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ marcweber ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ libedit icu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
}; in rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
firebird_2_5 = stdenv.mkDerivation (base // rec {
|
|
|
|
version = "2.5.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
|
|
|
rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
|
|
|
sha256 = "sha256-YyvlMeBux80OpVhsCv+6IVxKXFRsgdr+1siupMR13JM=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
configureFlags = base.configureFlags ++ [ "--with-system-icu" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00: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 {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.0.8";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-l1V3CGxTybPY8pl6WhsExqdWJLiYsOv5BCrU/iD+I7k=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = base.buildInputs ++ [ zlib libtommath ];
|
|
|
|
|
|
|
|
meta = base.meta // { platforms = [ "x86_64-linux" ]; };
|
|
|
|
});
|
|
|
|
|
|
|
|
firebird_4 = stdenv.mkDerivation (base // rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "4.0.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirebirdSQL";
|
|
|
|
repo = "firebird";
|
2021-05-28 09:39:13 +00:00
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-0XUu1g/VTrklA3vCpX6HWr7sdW2eQupnelpFNSGcouM=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = base.buildInputs ++ [ zlib unzip libtommath libtomcrypt ];
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
firebird = firebird_4;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|