mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
29 lines
979 B
Nix
29 lines
979 B
Nix
{stdenv, fetchurl, zlib, openssl, libre, librem, mysql}:
|
|
stdenv.mkDerivation rec {
|
|
version = "0.4.2";
|
|
name = "restund-${version}";
|
|
src=fetchurl {
|
|
url = "http://www.creytiv.com/pub/restund-${version}.tar.gz";
|
|
sha256 = "db5260939d40cb2ce531075bef02b9d6431067bdd52f3168a6f25246bdf7b9f2";
|
|
};
|
|
buildInputs = [zlib openssl libre librem mysql];
|
|
makeFlags = [
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
|
"LIBRE_INC=${libre}/include/re"
|
|
"LIBRE_SO=${libre}/lib"
|
|
"LIBREM_PATH=${librem}"
|
|
''PREFIX=$(out)''
|
|
"USE_MYSQL=1"
|
|
]
|
|
++ stdenv.lib.optional (stdenv.gcc.gcc != null) "SYSROOT_ALT=${stdenv.gcc.gcc}"
|
|
++ stdenv.lib.optional (stdenv.gcc.libc != null) "SYSROOT=${stdenv.gcc.libc}"
|
|
;
|
|
NIX_LDFLAGS='' -L${mysql}/lib/mysql '';
|
|
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;
|
|
};
|
|
}
|