1{ lib
2, stdenv
3, fetchFromGitHub
4, autoconf
5, automake
6, libtool
7, pkg-config
8, glib
9, libdaemon
10, libmpdclient
11, curl
12, sqlite
13, bundlerEnv
14, libnotify
15, pandoc
16}:
17
18let
19 gemEnv = bundlerEnv {
20 name = "mpdcron-bundle";
21 gemdir = ./.;
22 };
23in stdenv.mkDerivation {
24 pname = "mpdcron";
25 version = "20161228";
26
27 src = fetchFromGitHub {
28 owner = "alip";
29 repo = "mpdcron";
30 rev = "e49e6049b8693d31887c538ddc7b19f5e8ca476b";
31 sha256 = "0vdksf6lcgmizqr5mqp0bbci259k0dj7gpmhx32md41jlmw5skaw";
32 };
33
34 nativeBuildInputs = [ autoconf automake pkg-config ];
35 buildInputs = [
36 libtool
37 glib
38 libdaemon
39 pandoc
40 libmpdclient
41 curl
42 sqlite
43 gemEnv.wrappedRuby
44 libnotify
45 ];
46
47 preConfigure = ''
48 ./autogen.sh
49 '';
50
51 configureFlags = [ "--enable-gmodule" "--with-standard-modules=all" ];
52
53 meta = with lib; {
54 description = "A cron like daemon for mpd";
55 homepage = "http://alip.github.io/mpdcron/";
56 license = licenses.gpl2Plus;
57 platforms = platforms.unix;
58 maintainers = with maintainers; [ lovek323 manveru ];
59 };
60}
61# TODO: autoreconfHook this