2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libdaemon
|
|
|
|
, libmpdclient
|
|
|
|
, curl
|
|
|
|
, sqlite
|
|
|
|
, bundlerEnv
|
|
|
|
, libnotify
|
|
|
|
, pandoc
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
gemEnv = bundlerEnv {
|
|
|
|
name = "mpdcron-bundle";
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "mpdcron";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "20161228";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alip";
|
|
|
|
repo = "mpdcron";
|
|
|
|
rev = "e49e6049b8693d31887c538ddc7b19f5e8ca476b";
|
|
|
|
sha256 = "0vdksf6lcgmizqr5mqp0bbci259k0dj7gpmhx32md41jlmw5skaw";
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
glib
|
|
|
|
libdaemon
|
|
|
|
pandoc
|
|
|
|
libmpdclient
|
|
|
|
curl
|
|
|
|
sqlite
|
|
|
|
gemEnv.wrappedRuby
|
|
|
|
libnotify
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-gmodule" "--with-standard-modules=all" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cron like daemon for mpd";
|
|
|
|
homepage = "http://alip.github.io/mpdcron/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ lovek323 manveru ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
2021-02-13 14:23:35 +00:00
|
|
|
# TODO: autoreconfHook this
|