aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/astronomy/phd2/default.nix
blob: 98afba77c4f026b941af49f6cfbd5e0a19eefb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, pkg-config, cmake, gtk3,
  wxGTK30-gtk3, curl, gettext, glib, indilib, libnova }:

stdenv.mkDerivation rec {
  pname = "phd2";
  version = "2.6.9dev1";

  src = fetchFromGitHub {
    owner = "OpenPHDGuiding";
    repo = "phd2";
    rev = "v${version}";
    sha256 = "1ih7m9lilh12xbhmwm9kkicaqy72mi3firl6df7m5x38n2zj3zm4";
  };

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ gtk3 wxGTK30-gtk3 curl gettext glib indilib libnova ];

  cmakeFlags = [
    "-DOPENSOURCE_ONLY=1"
  ];

  meta = with stdenv.lib; {
    homepage = "https://openphdguiding.org/";
    description = "Telescope auto-guidance application";
    license = licenses.bsd3;
    maintainers = with maintainers; [ hjones2199 ];
    platforms = [ "x86_64-linux" ];
  };
}