2021-07-03 03:11:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK30-gtk3
|
|
|
|
, curl, gettext, glib, indi-full, libnova, wrapGAppsHook }:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "phd2";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "2.6.10";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenPHDGuiding";
|
|
|
|
repo = "phd2";
|
|
|
|
rev = "v${version}";
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "sha256-2ZiPjhlguWXFcC53xG1aqAode7twtoHWszFUMQkK5xU=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
wxGTK30-gtk3
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|