From d14952311e5306073820f3e2dc13d6af81731659 Mon Sep 17 00:00:00 2001 From: Hunter Jones Date: Fri, 30 Oct 2020 18:46:57 -0500 Subject: [PATCH] phd2: init at 2.6.9dev1 --- .../science/astronomy/phd2/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/science/astronomy/phd2/default.nix diff --git a/pkgs/applications/science/astronomy/phd2/default.nix b/pkgs/applications/science/astronomy/phd2/default.nix new file mode 100644 index 000000000000..98afba77c4f0 --- /dev/null +++ b/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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b33ef46844b6..8a2e199d79c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2489,6 +2489,8 @@ in pev = callPackage ../development/tools/analysis/pev { }; + phd2 = callPackage ../applications/science/astronomy/phd2 { }; + phoronix-test-suite = callPackage ../tools/misc/phoronix-test-suite { }; photon = callPackage ../tools/networking/photon { };