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