diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/science/astronomy')
4 files changed, 102 insertions, 16 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/astrolabe-generator/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/astrolabe-generator/default.nix index cb3f3131ea14..4a6bdd9d1e9c 100644 --- a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/astrolabe-generator/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/astrolabe-generator/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { homepage = "https://www.astrolabeproject.com"; description = "A Java-based tool for generating EPS files for constructing astrolabes and related tools"; license = licenses.gpl3; - maintainers = [ maintainers.genesis ]; + maintainers = [ ]; platforms = platforms.all; }; } diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/default.nix index 0b53e3e85ac3..fde8df610485 100644 --- a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/default.nix @@ -1,27 +1,30 @@ { - mkDerivation, lib, fetchgit, - extra-cmake-modules, + stdenv, extra-cmake-modules, fetchurl, kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio, - knewstuff, kplotting, kwidgetsaddons, kxmlgui, + knewstuff, kplotting, kwidgetsaddons, kxmlgui, wrapQtAppsHook, qtx11extras, qtwebsockets, eigen, zlib, - cfitsio, indilib, xplanet + cfitsio, indilib, xplanet, libnova, gsl }: -mkDerivation { - name = "kstars"; - - src = fetchgit { - url = "https://anongit.kde.org/kstars.git"; - rev = "7acc527939280edd22823371dc4e22494c6c626a"; - sha256 = "1n1lgi7p3dj893fdnzjbnrha40p4apl0dy8zppcabxwrb1khb84v"; +stdenv.mkDerivation rec { + pname = "kstars"; + version = "3.4.3"; + + src = fetchurl { + url = "https://mirrors.mit.edu/kde/stable/kstars/kstars-${version}.tar.xz"; + sha256 = "0j5yxg6ay6sic194skz6vjzg6yvrpb3gvypvs0frjrcjbsl1j4f8"; }; - - nativeBuildInputs = [ extra-cmake-modules kdoctools ]; + + patches = [ + ./indi-fix.patch + ]; + + nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ]; buildInputs = [ kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio knewstuff kplotting kwidgetsaddons kxmlgui @@ -30,10 +33,14 @@ mkDerivation { eigen zlib - cfitsio indilib xplanet + cfitsio indilib xplanet libnova gsl + ]; + + cmakeFlags = [ + "-DINDI_NIX_ROOT=${indilib}" ]; - meta = with lib; { + meta = with stdenv.lib; { description = "Virtual planetarium astronomy software"; homepage = "https://kde.org/applications/education/org.kde.kstars"; longDescription = '' diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/indi-fix.patch b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/indi-fix.patch new file mode 100644 index 000000000000..9ff9f8a31dd3 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/kstars/indi-fix.patch @@ -0,0 +1,50 @@ +--- CMakeLists.txt 2020-11-02 13:58:06.119743710 -0600 ++++ kstars-3.4.3/CMakeLists.txt 2020-11-02 14:05:01.707799274 -0600 +@@ -4,5 +4,7 @@ + set (KStars_VERSION_REVISION 3) + set (CMAKE_CXX_STANDARD 11) + ++add_definitions(-DINDI_NIX_ROOT=${INDI_NIX_ROOT}) ++ + # Build KStars Lite with -DBUILD_KSTARS_LITE=ON + option(BUILD_KSTARS_LITE "Build KStars Lite" OFF) + +--- ksutils.cpp 2020-11-02 13:47:44.883596916 -0600 ++++ kstars-3.4.3/kstars/auxiliary/ksutils.cpp 2020-11-02 17:41:44.961937090 -0600 +@@ -1076,6 +1076,9 @@ + { + QString snap = QProcessEnvironment::systemEnvironment().value("SNAP"); + QString flat = QProcessEnvironment::systemEnvironment().value("FLATPAK_DEST"); ++#define STR_EXPAND(x) #x ++#define STR(x) STR_EXPAND(x) ++ QString nix = QString(STR(INDI_NIX_ROOT)); + + if (option == "fitsDir") + { +@@ -1089,7 +1091,7 @@ + if (flat.isEmpty() == false) + return flat + "/bin/indiserver"; + else +- return snap + "/usr/bin/indiserver"; ++ return nix + "/bin/indiserver"; + } + else if (option == "INDIHubAgent") + { +@@ -1099,7 +1101,7 @@ + if (flat.isEmpty() == false) + return flat + "/bin/indihub-agent"; + else +- return snap + "/usr/bin/indihub-agent"; ++ return nix + "/bin/indihub-agent"; + } + else if (option == "indiDriversDir") + { +@@ -1109,7 +1111,7 @@ + if (flat.isEmpty() == false) + return flat + "/share/indi"; + else +- return snap + "/usr/share/indi"; ++ return nix + "/share/indi"; + #else + return QStandardPaths::locate(QStandardPaths::GenericDataLocation, "indi", QStandardPaths::LocateDirectory); + #endif diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/phd2/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/phd2/default.nix new file mode 100644 index 000000000000..98afba77c4f0 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/phd2/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, + wxGTK30-gtk3, curl, gettext, glib, indilib, libnova }: + +stdenv.mkDerivation rec { + pname = "phd2"; + version = "2.6.9dev1"; + + src = fetchFromGitHub { + owner = "OpenPHDGuiding"; + repo = "phd2"; + rev = "v${version}"; + sha256 = "1ih7m9lilh12xbhmwm9kkicaqy72mi3firl6df7m5x38n2zj3zm4"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ gtk3 wxGTK30-gtk3 curl gettext glib indilib libnova ]; + + cmakeFlags = [ + "-DOPENSOURCE_ONLY=1" + ]; + + meta = with stdenv.lib; { + homepage = "https://openphdguiding.org/"; + description = "Telescope auto-guidance application"; + license = licenses.bsd3; + maintainers = with maintainers; [ hjones2199 ]; + platforms = [ "x86_64-linux" ]; + }; +} |