@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook
2+, curl, db, gdal, libgeotiff
3+, libXpm, libXt, motif, pcre
4+, perl, proj, rastermagick, shapelib
5+}:
6+
7+let
8+ version = "208";
9+in
10+stdenv.mkDerivation {
11+ name = "xastir-"+version;
12+
13+ src = fetchFromGitHub {
14+ owner = "Xastir";
15+ repo = "Xastir";
16+ rev = "707f3aa8c7ca3e3fecd32d5a4af3f742437e5dce";
17+ sha256 = "1mm22vn3hws7dmg9wpaj4s0zkzb77i3aqa2ay3q6kqjkdhv25brl";
18+ };
19+
20+ buildInputs =
21+ [ autoreconfHook
22+ curl db gdal libgeotiff
23+ libXpm libXt motif pcre
24+ perl proj rastermagick shapelib
25+ ];
26+
27+ configureFlags =
28+ [ "--with-motif-includes=${motif}/include" ];
29+
30+ meta = with stdenv.lib; {
31+ description = "Graphical APRS client";
32+ homepage = https://xastir.org;
33+ license = licenses.gpl2;
34+ maintainers = [ maintainers.ehmry ];
35+ platforms = platforms.linux;
36+ };
37+}