2023-01-02 23:50:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK32
|
2021-06-30 08:18:38 +02:00
|
|
|
, curl, gettext, glib, indi-full, libnova, wrapGAppsHook }:
|
2020-10-31 00:46:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phd2";
|
2023-12-30 08:01:45 +01:00
|
|
|
version = "2.6.13";
|
2020-10-31 00:46:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenPHDGuiding";
|
|
|
|
repo = "phd2";
|
|
|
|
rev = "v${version}";
|
2023-12-30 08:01:45 +01:00
|
|
|
sha256 = "sha256-GnT/tyk975caqESBSu4mdX5IWGi5O+RljLSd+CwoGWo=";
|
2020-10-31 00:46:57 +01:00
|
|
|
};
|
|
|
|
|
2021-06-30 08:18:38 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2023-01-02 23:50:47 +01:00
|
|
|
wxGTK32
|
2021-06-30 08:18:38 +02:00
|
|
|
curl
|
|
|
|
gettext
|
|
|
|
glib
|
|
|
|
indi-full
|
|
|
|
libnova
|
|
|
|
];
|
2020-10-31 00:46:57 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DOPENSOURCE_ONLY=1"
|
|
|
|
];
|
|
|
|
|
2020-12-22 18:36:25 +01: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-31 00:46:57 +01:00
|
|
|
homepage = "https://openphdguiding.org/";
|
|
|
|
description = "Telescope auto-guidance application";
|
2021-06-30 08:18:38 +02:00
|
|
|
changelog = "https://github.com/OpenPHDGuiding/phd2/releases/tag/v${version}";
|
2020-10-31 00:46:57 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
2021-06-30 08:18:38 +02:00
|
|
|
platforms = platforms.linux;
|
2020-10-31 00:46:57 +01:00
|
|
|
};
|
|
|
|
}
|