Merge pull request #121546 from superherointj/package-firebird

firebird: 2.5.7 -> 2.5.9, init 3.0.7, init 4.0.0-rc1
This commit is contained in:
Dmitry Kalinkin
2021-05-18 12:46:12 -04:00
committed by GitHub
3 changed files with 78 additions and 83 deletions
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, libtool }:
{ lib, stdenv, fetchurl, fetchpatch, libtool, libtommath }:
stdenv.mkDerivation rec {
pname = "libtomcrypt";
@@ -17,14 +17,16 @@ stdenv.mkDerivation rec {
})
];
nativeBuildInputs = [ libtool ];
nativeBuildInputs = [ libtool libtommath ];
postPatch = ''
substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
'';
preBuild = ''
makeFlagsArray=(PREFIX=$out \
makeFlagsArray+=(PREFIX=$out \
CFLAGS="-DUSE_LTM -DLTM_DESC -DLTC_PTHREAD" \
EXTRALIBS=\"-ltommath\" \
INSTALL_GROUP=$(id -g) \
INSTALL_USER=$(id -u))
'';