nixpkgs/pkgs/by-name/ph/phd2/package.nix

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

49 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-02 22:50:47 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK32
, 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
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"
];
# 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 = 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
};
}