From 9516bbf172aedb7e1211ef0369e09167f95d6a5d Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 27 Jun 2017 09:51:06 +0200 Subject: [PATCH] geogebra: make `language` configurable --- pkgs/applications/science/math/geogebra/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/geogebra/default.nix b/pkgs/applications/science/math/geogebra/default.nix index b4b730d33439..b6fdd6f58b9b 100644 --- a/pkgs/applications/science/math/geogebra/default.nix +++ b/pkgs/applications/science/math/geogebra/default.nix @@ -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/