mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
26 lines
789 B
Nix
26 lines
789 B
Nix
{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 ];
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|