2015-04-01 23:39:50 +00:00
|
|
|
{ stdenv, fetchurl, zlib, openssl, libre, librem, mysql }:
|
2012-09-25 06:34:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.2";
|
|
|
|
name = "restund-${version}";
|
|
|
|
src=fetchurl {
|
|
|
|
url = "http://www.creytiv.com/pub/restund-${version}.tar.gz";
|
|
|
|
sha256 = "db5260939d40cb2ce531075bef02b9d6431067bdd52f3168a6f25246bdf7b9f2";
|
|
|
|
};
|
2015-04-01 23:39:50 +00:00
|
|
|
buildInputs = [ zlib openssl libre librem mysql.lib ];
|
2012-09-25 06:34:45 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
|
|
|
"LIBRE_INC=${libre}/include/re"
|
|
|
|
"LIBRE_SO=${libre}/lib"
|
|
|
|
"LIBREM_PATH=${librem}"
|
|
|
|
''PREFIX=$(out)''
|
2012-09-25 06:47:00 +00:00
|
|
|
"USE_MYSQL=1"
|
2012-09-25 06:34:45 +00:00
|
|
|
]
|
2015-01-15 04:25:26 +00:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
2014-12-17 18:11:30 +00:00
|
|
|
++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
|
2012-09-25 06:34:45 +00:00
|
|
|
;
|
2015-04-01 23:39:50 +00:00
|
|
|
NIX_LDFLAGS='' -L${mysql.lib}/lib/mysql '';
|
2012-09-25 06:34:45 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.creytiv.com/restund.html";
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
|
|
license = with stdenv.lib.licenses; bsd3;
|
2014-07-01 07:53:47 +00:00
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://www.creytiv.com/pub/";
|
|
|
|
updateWalker = true;
|
|
|
|
downloadURLRegexp = "/restund-.*[.]tar[.]";
|
2014-11-27 00:19:24 +00:00
|
|
|
broken = true; # probably due to glibc-2.20
|
2012-09-25 06:34:45 +00:00
|
|
|
};
|
|
|
|
}
|