mucommander: Use jdk11 & gradle6

This commit is contained in:
Philipp Hausmann 2020-12-03 12:05:14 +01:00 committed by Philipp Hausmann
parent c1695ade0b
commit 393c770cc2

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gradle_4_10, perl, makeWrapper, jre, gsettings-desktop-schemas }:
{ stdenv, fetchFromGitHub, gradle_6, perl, makeWrapper, jdk11, gsettings-desktop-schemas }:
let
version = "0.9.3-3";
@ -36,7 +36,7 @@ let
deps = stdenv.mkDerivation {
name = "${name}-deps";
inherit src postPatch;
nativeBuildInputs = [ gradle_4_10 perl ];
nativeBuildInputs = [ gradle_6 perl ];
buildPhase = ''
export GRADLE_USER_HOME=$(mktemp -d)
gradle --no-daemon build
@ -54,7 +54,7 @@ let
in stdenv.mkDerivation {
inherit name src postPatch;
nativeBuildInputs = [ gradle_4_10 perl makeWrapper ];
nativeBuildInputs = [ gradle_6 perl makeWrapper ];
buildPhase = ''
export GRADLE_USER_HOME=$(mktemp -d)
@ -73,7 +73,7 @@ in stdenv.mkDerivation {
tar xvf build/distributions/mucommander-${version}.tar --directory=$out --strip=1
wrapProgram $out/bin/mucommander \
--prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name} \
--set JAVA_HOME ${jre}
--set JAVA_HOME ${jdk11}
'';
meta = with stdenv.lib; {
@ -81,6 +81,9 @@ in stdenv.mkDerivation {
description = "Cross-platform file manager";
license = licenses.gpl3;
maintainers = with maintainers; [ volth ];
# build is broken on MacOS
# https://github.com/NixOS/nixpkgs/pull/105784
broken = stdenv.isDarwin;
platforms = platforms.all;
};
}