2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK32
|
2021-07-03 03:11:41 +00:00
|
|
|
, curl, gettext, glib, indi-full, libnova, wrapGAppsHook }:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phd2";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2.6.11";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenPHDGuiding";
|
|
|
|
repo = "phd2";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-iautgHOVzdLWYGOVu3wHBDt30uCbaP58mDz/l7buB1k=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2023-01-11 07:51:40 +00:00
|
|
|
wxGTK32
|
2021-07-03 03:11:41 +00:00
|
|
|
curl
|
|
|
|
gettext
|
|
|
|
glib
|
|
|
|
indi-full
|
|
|
|
libnova
|
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DOPENSOURCE_ONLY=1"
|
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
# Fix broken wrapped name scheme by moving wrapped binary to where wrapper expects it
|
|
|
|
postFixup = ''
|
|
|
|
mv $out/bin/.phd2.bin-wrapped $out/bin/.phd2-wrapped.bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://openphdguiding.org/";
|
|
|
|
description = "Telescope auto-guidance application";
|
2021-07-03 03:11:41 +00:00
|
|
|
changelog = "https://github.com/OpenPHDGuiding/phd2/releases/tag/v${version}";
|
2020-11-30 08:33:03 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
2021-07-03 03:11:41 +00:00
|
|
|
platforms = platforms.linux;
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
}
|