diff --git a/pkgs/development/libraries/java/dbus-java/default.nix b/pkgs/development/libraries/java/dbus-java/default.nix new file mode 100644 index 000000000000..7b55f8b15a2a --- /dev/null +++ b/pkgs/development/libraries/java/dbus-java/default.nix @@ -0,0 +1,21 @@ +{stdenv, fetchurl, gettext, jdk, libmatthew_java}: + +stdenv.mkDerivation { + name = "dbus-java-2.7"; + src = fetchurl { + url = http://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz; + sha256 = "0cyaxd8x6sxmi6pklkkx45j311a6w51fxl4jc5j3inc4cailwh5y"; + }; + JAVA_HOME=jdk; + JAVA="${jdk}/bin/java"; + PREFIX=''''${out}''; + JAVAUNIXLIBDIR="${libmatthew_java}/lib/jni"; + JAVAUNIXJARDIR="${libmatthew_java}/share/java"; + buildInputs = [ gettext jdk ]; + # I'm too lazy to build the documentation + preBuild = '' + sed -i -e "s|all: bin doc man|all: bin|" \ + -e "s|install: install-bin install-man install-doc|install: install-bin|" Makefile + ''; + maintainers = [ stdenv.lib.maintainers.sander ]; +} diff --git a/pkgs/development/libraries/java/libmatthew-java/default.nix b/pkgs/development/libraries/java/libmatthew-java/default.nix new file mode 100644 index 000000000000..785ba9ab9ead --- /dev/null +++ b/pkgs/development/libraries/java/libmatthew-java/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, jdk}: + +stdenv.mkDerivation { + name = "libmatthew-java-0.7.2"; + src = fetchurl { + url = http://www.matthew.ath.cx/projects/java/libmatthew-java-0.7.2.tar.gz; + sha256 = "00zd6vplbvha64pf65bpw44abg2y8irblik30pbk35wcm86a0j4z"; + }; + JAVA_HOME=jdk; + PREFIX=''''${out}''; + buildInputs = [ jdk ]; + maintainers = [ stdenv.lib.maintainers.sander ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ca835e4ac258..efdf08ea26a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3197,6 +3197,10 @@ let inherit fetchurl stdenv pkgconfig gettext dbus expat glib; }; + dbus_java = import ../development/libraries/java/dbus-java { + inherit stdenv fetchurl gettext jdk libmatthew_java; + }; + dclib = import ../development/libraries/dclib { inherit fetchurl stdenv libxml2 openssl bzip2; }; @@ -3941,6 +3945,10 @@ let inherit fetchurl stdenv; }; + libmatthew_java = import ../development/libraries/java/libmatthew-java { + inherit stdenv fetchurl jdk; + }; + libmcs = import ../development/libraries/libmcs { inherit fetchurl stdenv pkgconfig libmowgli; };