geogebra: make language configurable

This commit is contained in:
Maximilian Bosch 2017-06-27 09:51:06 +02:00
parent 3270545094
commit 9516bbf172
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper }:
{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper, language ? "en_US" }:
stdenv.mkDerivation rec {
name = "geogebra-${version}";
@ -34,7 +34,8 @@ stdenv.mkDerivation rec {
makeWrapper "$out/libexec/geogebra/geogebra" "$out/bin/geogebra" \
--set JAVACMD "${jre}/bin/java" \
--set GG_PATH "$out/libexec/geogebra"
--set GG_PATH "$out/libexec/geogebra" \
--add-flags "--language=${language}"
install -Dm644 "${desktopItem}/share/applications/"* \
-t $out/share/applications/