2021-12-26 17:43:05 +00:00
|
|
|
{ lib, stdenv, fetchurl, gettext, jdk8, libmatthew_java }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dbus-java";
|
|
|
|
version = "2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "https://dbus.freedesktop.org/releases/dbus-java/dbus-java-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0cyaxd8x6sxmi6pklkkx45j311a6w51fxl4jc5j3inc4cailwh5y";
|
|
|
|
};
|
2021-12-26 17:43:05 +00:00
|
|
|
JAVA_HOME=jdk8;
|
|
|
|
JAVA="${jdk8}/bin/java";
|
2021-02-05 17:12:51 +00:00
|
|
|
PREFIX="\${out}";
|
2020-04-24 23:36:52 +00:00
|
|
|
JAVAUNIXLIBDIR="${libmatthew_java}/lib/jni";
|
|
|
|
JAVAUNIXJARDIR="${libmatthew_java}/share/java";
|
2021-12-26 17:43:05 +00:00
|
|
|
buildInputs = [ gettext jdk8 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sander ];
|
|
|
|
license = licenses.afl21;
|
|
|
|
};
|
|
|
|
}
|