1 { lib, stdenv, fetchFromGitHub, libedit, autoreconfHook271, zlib, unzip, libtommath, libtomcrypt, icu, superServer ? false }:
7 description = "SQL relational database management system";
8 downloadPage = "https://github.com/FirebirdSQL/firebird/";
9 homepage = "https://firebirdsql.org/";
10 changelog = "https://github.com/FirebirdSQL/firebird/blob/master/CHANGELOG.md";
11 license = [ "IDPL" "Interbase-1.0" ];
12 platforms = platforms.linux;
13 maintainers = with maintainers; [ marcweber ];
16 nativeBuildInputs = [ autoreconfHook271 ];
18 buildInputs = [ libedit icu ];
20 LD_LIBRARY_PATH = lib.makeLibraryPath [ icu ];
23 "--with-system-editline"
24 ] ++ (lib.optional superServer "--enable-superserver");
29 cp -r gen/Release/firebird/* $out
35 firebird_2_5 = stdenv.mkDerivation (base // rec {
38 src = fetchFromGitHub {
39 owner = "FirebirdSQL";
41 rev = "R${builtins.replaceStrings [ "." ] [ "_" ] version}";
42 sha256 = "sha256-YyvlMeBux80OpVhsCv+6IVxKXFRsgdr+1siupMR13JM=";
45 configureFlags = base.configureFlags ++ [ "--with-system-icu" ];
50 cp -r gen/firebird/* $out
54 meta = base.meta // { platforms = [ "x86_64-linux" ]; };
57 firebird_3 = stdenv.mkDerivation (base // rec {
60 src = fetchFromGitHub {
61 owner = "FirebirdSQL";
64 sha256 = "sha256-PT2b3989n/7xLGNREWinEey9SGnAXShITdum+yiFlHY=";
67 buildInputs = base.buildInputs ++ [ zlib libtommath ];
69 meta = base.meta // { platforms = [ "x86_64-linux" ]; };
72 firebird_4 = stdenv.mkDerivation (base // rec {
75 src = fetchFromGitHub {
76 owner = "FirebirdSQL";
79 sha256 = "sha256-hddW/cozboGw693q4k5f4+x9ccQFWFytXPUaBVkFnL4=";
82 buildInputs = base.buildInputs ++ [ zlib unzip libtommath libtomcrypt ];
85 firebird = firebird_4;