3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #26904 from Ma27/geogebra/make-language-configurable

geogebra: make `language` configurable
This commit is contained in:
Joachim F 2017-06-27 16:21:00 +01:00 committed by GitHub
commit c27fc66856

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/