mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
848 B
Nix
29 lines
848 B
Nix
{ lib, stdenv, fetchurl, gettext, jdk8, libmatthew_java }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dbus-java";
|
|
version = "2.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://dbus.freedesktop.org/releases/dbus-java/dbus-java-${version}.tar.gz";
|
|
sha256 = "0cyaxd8x6sxmi6pklkkx45j311a6w51fxl4jc5j3inc4cailwh5y";
|
|
};
|
|
JAVA_HOME=jdk8;
|
|
JAVA="${jdk8}/bin/java";
|
|
PREFIX="\${out}";
|
|
JAVAUNIXLIBDIR="${libmatthew_java}/lib/jni";
|
|
JAVAUNIXJARDIR="${libmatthew_java}/share/java";
|
|
buildInputs = [ gettext jdk8 ];
|
|
# 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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.sander ];
|
|
license = licenses.afl21;
|
|
};
|
|
}
|