dbus-java: switch to pname+version, format
This commit is contained in:
parent
0fdec325b6
commit
1fa0af9167
|
@ -1,18 +1,19 @@
|
|||
{lib, stdenv, fetchurl, gettext, jdk8, libmatthew_java}:
|
||||
{ lib, stdenv, fetchurl, gettext, jdk8, libmatthew_java }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dbus-java";
|
||||
version = "2.7";
|
||||
|
||||
let jdk = jdk8; in
|
||||
stdenv.mkDerivation {
|
||||
name = "dbus-java-2.7";
|
||||
src = fetchurl {
|
||||
url = "https://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz";
|
||||
url = "https://dbus.freedesktop.org/releases/dbus-java/dbus-java-${version}.tar.gz";
|
||||
sha256 = "0cyaxd8x6sxmi6pklkkx45j311a6w51fxl4jc5j3inc4cailwh5y";
|
||||
};
|
||||
JAVA_HOME=jdk;
|
||||
JAVA="${jdk}/bin/java";
|
||||
JAVA_HOME=jdk8;
|
||||
JAVA="${jdk8}/bin/java";
|
||||
PREFIX="\${out}";
|
||||
JAVAUNIXLIBDIR="${libmatthew_java}/lib/jni";
|
||||
JAVAUNIXJARDIR="${libmatthew_java}/share/java";
|
||||
buildInputs = [ gettext jdk ];
|
||||
buildInputs = [ gettext jdk8 ];
|
||||
# I'm too lazy to build the documentation
|
||||
preBuild = ''
|
||||
sed -i -e "s|all: bin doc man|all: bin|" \
|
||||
|
|
Loading…
Reference in a new issue