Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
gtk3,
wxGTK32,
curl,
gettext,
glib,
indi-full,
libnova,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "phd2";
version = "2.6.13";
src = fetchFromGitHub {
owner = "OpenPHDGuiding";
repo = "phd2";
rev = "v${version}";
sha256 = "sha256-GnT/tyk975caqESBSu4mdX5IWGi5O+RljLSd+CwoGWo=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook3
];
buildInputs = [
gtk3
wxGTK32
curl
gettext
glib
indi-full
libnova
];
cmakeFlags = [
"-DOPENSOURCE_ONLY=1"
];
# 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
'';
meta = {
homepage = "https://openphdguiding.org/";
description = "Telescope auto-guidance application";
changelog = "https://github.com/OpenPHDGuiding/phd2/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
returntoreality
];
platforms = lib.platforms.linux;
};
}