junixsocket: Add

This commit is contained in:
Eelco Dolstra 2014-01-25 02:28:19 +01:00
parent 1b598da460
commit 458d0a92c9
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ stdenv, fetchurl, ant, jdk, junit }:
stdenv.mkDerivation rec {
name = "junixsocket-1.3";
src = fetchurl {
url = "http://junixsocket.googlecode.com/files/${name}-src.tar.bz2";
sha256 = "0c6p8vmiv5nk8i6g1hgivnl3mpb2k3lhjjz0ss9dlirisfrxf1ym";
};
buildInputs = [ ant jdk junit ];
preConfigure =
''
sed -i 's|/usr/bin/||' build.xml
'';
buildPhase = "ant";
ANT_ARGS =
"-Dskip32=true -Dant.build.javac.source=1.6"
+ stdenv.lib.optionalString stdenv.isDarwin " -DisMac=true";
installPhase =
''
mkdir -p $out/share/java $out/lib
cp -v dist/*.jar $out/share/java
cp -v lib-native/*.so lib-native/*.dylib $out/lib/
'';
meta = {
description = "A Java/JNI library for using Unix Domain Sockets from Java";
homepage = https://code.google.com/p/junixsocket/;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -5835,6 +5835,8 @@ let
junit = callPackage ../development/libraries/java/junit { };
junixsocket = callPackage ../development/libraries/java/junixsocket { };
jzmq = callPackage ../development/libraries/java/jzmq { };
lucene = callPackage ../development/libraries/java/lucene { };