nixpkgs/pkgs/tools/audio/mpdcron/default.nix

38 lines
1,019 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, glib, libdaemon
, mpd_clientlib, curl, sqlite, bundlerEnv, libnotify, pandoc }:
2014-05-23 00:39:28 +02:00
2015-01-22 04:38:29 +01:00
let
gemEnv = bundlerEnv {
name = "mpdcron-bundle";
2017-01-18 00:19:14 +01:00
gemdir = ./.;
2015-01-22 04:38:29 +01:00
};
2019-08-13 23:52:01 +02:00
in stdenv.mkDerivation {
2019-05-03 14:16:11 +02:00
version = "20161228";
pname = "mpdcron";
2014-05-23 00:39:28 +02:00
2019-05-03 14:16:11 +02:00
src = fetchFromGitHub {
owner = "alip";
repo = "mpdcron";
rev = "e49e6049b8693d31887c538ddc7b19f5e8ca476b";
sha256 = "0vdksf6lcgmizqr5mqp0bbci259k0dj7gpmhx32md41jlmw5skaw";
2014-05-23 00:39:28 +02:00
};
meta = with lib; {
2014-11-11 14:20:43 +01:00
description = "A cron like daemon for mpd";
homepage = "http://alip.github.io/mpdcron/";
2019-05-03 14:16:11 +02:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ lovek323 manveru ];
2014-05-23 00:39:28 +02:00
};
buildInputs =
[ autoconf automake libtool pkg-config glib libdaemon pandoc
2019-05-03 14:16:11 +02:00
mpd_clientlib curl sqlite gemEnv.wrappedRuby libnotify ];
2014-05-23 00:39:28 +02:00
preConfigure = ''
./autogen.sh
'';
configureFlags = [ "--enable-gmodule" "--with-standard-modules=all" ];
}