diff options
author | Mohammed Yaseen Mowzer <yaseen@mowzer.co.za> | 2016-07-31 14:23:05 +0200 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-08-10 14:32:09 +0100 |
commit | 04f0cb86d0e438e039ccb97f30ffc038bbd58315 (patch) | |
tree | 58ec5a57aab9dce51a38e9f7c55a88a10d43b13f /pkgs/applications/science/math | |
parent | de7a2651173655eef7c37369a05b6d4a47b64f41 (diff) | |
download | nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar.gz nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar.bz2 nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar.lz nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar.xz nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.tar.zst nixlib-04f0cb86d0e438e039ccb97f30ffc038bbd58315.zip |
geogebra: init at 5.0.265.0
Closes #17400
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r-- | pkgs/applications/science/math/geogebra/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/geogebra/default.nix b/pkgs/applications/science/math/geogebra/default.nix new file mode 100644 index 000000000000..d92318ef31a3 --- /dev/null +++ b/pkgs/applications/science/math/geogebra/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper }: + +stdenv.mkDerivation rec { + name = "geogebra-${version}"; + version = "5.0.265.0"; + + src = fetchurl { + url = "http://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2"; + sha256 = "74e5abfa098ee0fc464cd391cd3ef6db474ff25e8ea4fbcd82c4b4b5d3d5c459"; + }; + + srcIcon = fetchurl { + url = "http://static.geogebra.org/images/geogebra-logo.svg"; + sha256 = "55ded6b5ec9ad382494f858d8ab5def0ed6c7d529481cd212863b2edde3b5e07"; + }; + + desktopItem = makeDesktopItem { + name = "geogebra"; + exec = "geogebra"; + icon = "geogebra"; + desktopName = "Geogebra"; + genericName = "Geogebra"; + comment = meta.description; + categories = "Education;Science;Math;"; + mimeType = "application/vnd.geogebra.file;application/vnd.geogebra.tool;"; + }; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + install -D geogebra/* -t "$out/libexec/geogebra/" + + makeWrapper "$out/libexec/geogebra/geogebra" "$out/bin/geogebra" \ + --set JAVACMD "${jre}/bin/java" \ + --set GG_PATH "$out/libexec/geogebra" + + install -Dm644 "${desktopItem}/share/applications/"* \ + -t $out/share/applications/ + + install -Dm644 "${srcIcon}" \ + "$out/share/icons/hicolor/scalable/apps/geogebra.svg" + ''; + + meta = with stdenv.lib; { + description = "Dynamic mathematics software with graphics, algebra and spreadsheets"; + longDescription = '' + Dynamic mathematics software for all levels of education that brings + together geometry, algebra, spreadsheets, graphing, statistics and + calculus in one easy-to-use package. + ''; + homepage = https://www.geogebra.org/; + license = with licenses; [ gpl3 cc-by-nc-sa-30 geogebra ]; + platforms = platforms.all; + }; +} |