mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 16:34:15 +03:00
Merge pull request #101421 from sikmir/geogebra
geogebra: 5-0-593-0 -> 5-0-609-0, geogebra6: 6-0-600-0 -> 6-0-609-0
This commit is contained in:
commit
952dc5c7ff
@ -1,18 +1,7 @@
|
|||||||
{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper, language ? "en_US" }:
|
{ stdenv, fetchurl, jre, makeDesktopItem, makeWrapper, unzip, language ? "en_US" }:
|
||||||
|
let
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "geogebra";
|
pname = "geogebra";
|
||||||
version = "5-0-593-0";
|
version = "5-0-609-0";
|
||||||
|
|
||||||
preferLocalBuild = true;
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
urls = [
|
|
||||||
"https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2"
|
|
||||||
"http://web.archive.org/https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2"
|
|
||||||
];
|
|
||||||
sha256 = "d84c27a3299e6df08881733d22215a18decedcba4c2d97a9e5424c39cd57db35";
|
|
||||||
};
|
|
||||||
|
|
||||||
srcIcon = fetchurl {
|
srcIcon = fetchurl {
|
||||||
url = "http://static.geogebra.org/images/geogebra-logo.svg";
|
url = "http://static.geogebra.org/images/geogebra-logo.svg";
|
||||||
@ -30,7 +19,34 @@ stdenv.mkDerivation rec {
|
|||||||
mimeType = "application/vnd.geogebra.file;application/vnd.geogebra.tool;";
|
mimeType = "application/vnd.geogebra.file;application/vnd.geogebra.tool;";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
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/";
|
||||||
|
maintainers = with maintainers; [ ma27 ];
|
||||||
|
license = with licenses; [ gpl3 cc-by-nc-sa-30 geogebra ];
|
||||||
|
platforms = with platforms; linux ++ darwin;
|
||||||
|
hydraPlatforms = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
linuxPkg = stdenv.mkDerivation {
|
||||||
|
inherit pname version meta srcIcon desktopItem;
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
urls = [
|
||||||
|
"https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2"
|
||||||
|
"http://web.archive.org/web/20201022200454/https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${version}.tar.bz2"
|
||||||
|
];
|
||||||
|
sha256 = "0xbhg8hm3dqm3qkraj48pqwslrnjyxpq9mcgylr2m8i1gmqw7xwf";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D geogebra/* -t "$out/libexec/geogebra/"
|
install -D geogebra/* -t "$out/libexec/geogebra/"
|
||||||
@ -46,18 +62,28 @@ stdenv.mkDerivation rec {
|
|||||||
install -Dm644 "${srcIcon}" \
|
install -Dm644 "${srcIcon}" \
|
||||||
"$out/share/icons/hicolor/scalable/apps/geogebra.svg"
|
"$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/";
|
|
||||||
maintainers = with maintainers; [ ma27 ];
|
|
||||||
license = with licenses; [ gpl3 cc-by-nc-sa-30 geogebra ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
hydraPlatforms = [];
|
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
darwinPkg = stdenv.mkDerivation {
|
||||||
|
inherit pname version meta;
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://download.geogebra.org/installers/5.0/GeoGebra-MacOS-Installer-withJava-${version}.zip";
|
||||||
|
sha256 = "16fgqwxz31cfmia0pyzpk05aqzrqr11sjbw37q9zb3xfh3p1r4gz";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -dm755 $out/Applications
|
||||||
|
unzip $src -d $out/Applications
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
if stdenv.isDarwin
|
||||||
|
then darwinPkg
|
||||||
|
else linuxPkg
|
||||||
|
@ -1,15 +1,26 @@
|
|||||||
{ stdenv, unzip, fetchurl, electron_6, makeWrapper, geogebra }:
|
{ stdenv, unzip, fetchurl, electron_6, makeWrapper, geogebra }:
|
||||||
stdenv.mkDerivation rec{
|
let
|
||||||
|
pname = "geogebra";
|
||||||
|
version = "6-0-609-0";
|
||||||
|
|
||||||
name = "geogebra-${version}";
|
srcIcon = geogebra.srcIcon;
|
||||||
version = "6-0-600-0";
|
desktopItem = geogebra.desktopItem;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; geogebra.meta // {
|
||||||
|
license = licenses.geogebra;
|
||||||
|
maintainers = with maintainers; [ voidless ];
|
||||||
|
platforms = with platforms; linux ++ darwin;
|
||||||
|
};
|
||||||
|
|
||||||
|
linuxPkg = stdenv.mkDerivation {
|
||||||
|
inherit pname version meta;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
"https://download.geogebra.org/installers/6.0/GeoGebra-Linux64-Portable-${version}.zip"
|
"https://download.geogebra.org/installers/6.0/GeoGebra-Linux64-Portable-${version}.zip"
|
||||||
"https://web.archive.org/web/20200904093945/https://download.geogebra.org/installers/6.0/GeoGebra-Linux64-Portable-${version}.zip"
|
"https://web.archive.org/web/20201022200156/https://download.geogebra.org/installers/6.0/GeoGebra-Linux64-Portable-${version}.zip"
|
||||||
];
|
];
|
||||||
sha256 = "1l49rvfkil2cz6r7sa2mi0p6hvb6p66jv3x6xj8hjqls4l3sfhkm";
|
sha256 = "0rzcbq587x8827g9v03awa9hz27vyfjc0cz45ymbchqp31lsx49b";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
@ -34,13 +45,26 @@ stdenv.mkDerivation rec{
|
|||||||
install -Dm644 "${srcIcon}" \
|
install -Dm644 "${srcIcon}" \
|
||||||
"$out/share/icons/hicolor/scalable/apps/geogebra.svg"
|
"$out/share/icons/hicolor/scalable/apps/geogebra.svg"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
srcIcon = geogebra.srcIcon;
|
|
||||||
|
|
||||||
desktopItem = geogebra.desktopItem;
|
|
||||||
meta = with stdenv.lib; geogebra.meta // {
|
|
||||||
license = licenses.geogebra;
|
|
||||||
maintainers = with maintainers; [ voidless ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
darwinPkg = stdenv.mkDerivation {
|
||||||
|
inherit pname version meta;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://download.geogebra.org/installers/6.0/GeoGebra-Classic-6-MacOS-Portable-${version}.zip";
|
||||||
|
sha256 = "0275869zgwbl1qjj593q6629hnxbwk9c15rkm29a3lh10pinb099";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ unzip ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -dm755 $out/Applications
|
||||||
|
unzip $src -d $out/Applications
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
if stdenv.isDarwin
|
||||||
|
then darwinPkg
|
||||||
|
else linuxPkg
|
||||||
|
Loading…
Reference in New Issue
Block a user