@@ -0,0 +1,50 @@
1+{ stdenv, fetchFromGitHub
2+, autoreconfHook, pkgconfig, gettext
3+, vim, glib, libxml2, openssl, ncurses, popt, screen
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "apt-dater-${version}";
8+ version = "1.0.3";
9+
10+ src = fetchFromGitHub {
11+ owner = "DE-IBH";
12+ repo = "apt-dater";
13+ rev = "v${version}";
14+ sha256 = "1flr6cm72cywmwp5h7pbmmpq057xsi9shkczyplxqaqrb2gns5fl";
15+ };
16+
17+ nativeBuildInputs = [
18+ pkgconfig autoreconfHook gettext
19+ ];
20+
21+ buildInputs = [
22+ libxml2 ncurses vim glib popt screen
23+ ];
24+
25+ configureFlags = [ "--disable-history" ];
26+
27+ prePatch = ''
28+ substituteInPlace etc/Makefile.am \
29+ --replace 02770 0770
30+ '';
31+
32+ postPatch = ''
33+ substituteInPlace configure.ac \
34+ --replace "/usr/bin/screen" "${screen}/bin/screen"
35+ '';
36+
37+ doCheck = true;
38+
39+ meta = with stdenv.lib; {
40+ homepage = https://github.com/DE-IBH/apt-dater;
41+ description = "Terminal-based remote package update manager";
42+ longDescription = ''
43+ Provides an ncurses frontend for managing package updates on a large
44+ number of remote hosts using SSH. It supports Debian-based managed hosts
45+ as well as rug (e.g. openSUSE) and yum (e.g. CentOS) based systems.
46+ '';
47+ license = licenses.gpl2Plus;
48+ maintainers = with maintainers; [ c0bw3b ];
49+ };
50+}