nixpkgs/pkgs/servers/sql/virtuoso/default.nix
Yury G. Kudryashov 0b11f22f49 Trying to fix virtuoso build on freebsd
svn path=/nixpkgs/trunk/; revision=21475
2010-05-01 07:41:40 +00:00

37 lines
1,017 B
Nix

{ stdenv, fetchurl, libxml2, openssl, readline, gawk }:
assert stdenv ? gawk || gawk != null;
stdenv.mkDerivation rec {
name = "virtuoso-opensource-6.1.1";
src = fetchurl {
url = "mirror://sf/virtuoso/${name}.tar.gz";
sha256 = "1sd70j9i26ml16lig9r9lmrdf5q0kybq71r6vzzzc5v5jxjz0l7w";
};
buildInputs = [ libxml2 openssl readline ]
++ stdenv.lib.optional (! stdenv ? gawk) gawk;
CPP="${stdenv.gcc}/bin/gcc -E";
configureFlags="
--enable-shared --disable-all-vads --with-readline=${readline}
--disable-hslookup --disable-wbxml2 --without-iodbc
--enable-openssl=${openssl}
";
postInstall=''
echo Move documentation
mkdir $out/share/doc
mv $out/share/virtuoso/doc $out/share/doc/${name}
find $out -name "*.a" -delete -o -name "*.jar" -delete -o -type d -empty -delete
'';
meta = with stdenv.lib; {
homepage = http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/;
platforms = platforms.all;
maintainers = [ maintainers.urkud ];
};
}