git.iko.soy/typeable/nixpkgs
on master help sign in
geogebra: init at 5.0.265.0

Closes #17400

commit04f0cb86d0e438e039ccb97f30ffc038bbd58315 authorMohammed Yaseen Mowzer <yaseen@mowzer.co.za> dateSun 31 Jul 2016, 14:23 (10 years ago) parentde7a265
3 files changed+63
lib/licenses.nix+6 pkgs/applications/science/math/geogebra/default.nix+55 pkgs/top-level/all-packages.nix+2
lib/licenses.nix+6
@@ -200,6 +200,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
200200 url = https://geant4.web.cern.ch/geant4/license/LICENSE.html;
201201 };
202202
203+ geogebra = {
204+ fullName = "GeoGebra Non-Commercial License Agreement";
205+ url = https://www.geogebra.org/license;
206+ free = false;
207+ };
208+
203209 gpl1 = spdx {
204210 spdxId = "GPL-1.0";
205211 fullName = "GNU General Public License v1.0 only";
pkgs/applications/science/math/geogebra/default.nixnew file+55
@@ -0,0 +1,55 @@
1+{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper }:
2+
3+stdenv.mkDerivation rec {
4+ name = "geogebra-${version}";
5+ version = "5.0.265.0";
6+
7+ src = fetchurl {
8+ url = "http://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2";
9+ sha256 = "74e5abfa098ee0fc464cd391cd3ef6db474ff25e8ea4fbcd82c4b4b5d3d5c459";
10+ };
11+
12+ srcIcon = fetchurl {
13+ url = "http://static.geogebra.org/images/geogebra-logo.svg";
14+ sha256 = "55ded6b5ec9ad382494f858d8ab5def0ed6c7d529481cd212863b2edde3b5e07";
15+ };
16+
17+ desktopItem = makeDesktopItem {
18+ name = "geogebra";
19+ exec = "geogebra";
20+ icon = "geogebra";
21+ desktopName = "Geogebra";
22+ genericName = "Geogebra";
23+ comment = meta.description;
24+ categories = "Education;Science;Math;";
25+ mimeType = "application/vnd.geogebra.file;application/vnd.geogebra.tool;";
26+ };
27+
28+ buildInputs = [ makeWrapper ];
29+
30+ installPhase = ''
31+ install -D geogebra/* -t "$out/libexec/geogebra/"
32+
33+ makeWrapper "$out/libexec/geogebra/geogebra" "$out/bin/geogebra" \
34+ --set JAVACMD "${jre}/bin/java" \
35+ --set GG_PATH "$out/libexec/geogebra"
36+
37+ install -Dm644 "${desktopItem}/share/applications/"* \
38+ -t $out/share/applications/
39+
40+ install -Dm644 "${srcIcon}" \
41+ "$out/share/icons/hicolor/scalable/apps/geogebra.svg"
42+ '';
43+
44+ meta = with stdenv.lib; {
45+ description = "Dynamic mathematics software with graphics, algebra and spreadsheets";
46+ longDescription = ''
47+ Dynamic mathematics software for all levels of education that brings
48+ together geometry, algebra, spreadsheets, graphing, statistics and
49+ calculus in one easy-to-use package.
50+ '';
51+ homepage = https://www.geogebra.org/;
52+ license = with licenses; [ gpl3 cc-by-nc-sa-30 geogebra ];
53+ platforms = platforms.all;
54+ };
55+}
pkgs/top-level/all-packages.nix+2
@@ -16862,6 +16862,8 @@ in
1686216862
1686316863 gap = callPackage ../applications/science/math/gap { };
1686416864
16865+ geogebra = callPackage ../applications/science/math/geogebra { };
16866+
1686516867 maxima = callPackage ../applications/science/math/maxima { };
1686616868
1686716869 wxmaxima = callPackage ../applications/science/math/wxmaxima { wxGTK = wxGTK30; };