4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
37 lines
1,017 B
Nix
37 lines
1,017 B
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, glib, libdaemon
|
|
, mpd_clientlib, curl, sqlite, bundlerEnv, libnotify, pandoc }:
|
|
|
|
let
|
|
gemEnv = bundlerEnv {
|
|
name = "mpdcron-bundle";
|
|
gemdir = ./.;
|
|
};
|
|
in stdenv.mkDerivation {
|
|
version = "20161228";
|
|
pname = "mpdcron";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alip";
|
|
repo = "mpdcron";
|
|
rev = "e49e6049b8693d31887c538ddc7b19f5e8ca476b";
|
|
sha256 = "0vdksf6lcgmizqr5mqp0bbci259k0dj7gpmhx32md41jlmw5skaw";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A cron like daemon for mpd";
|
|
homepage = "http://alip.github.io/mpdcron/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ lovek323 manveru ];
|
|
};
|
|
|
|
buildInputs =
|
|
[ autoconf automake libtool pkgconfig glib libdaemon pandoc
|
|
mpd_clientlib curl sqlite gemEnv.wrappedRuby libnotify ];
|
|
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [ "--enable-gmodule" "--with-standard-modules=all" ];
|
|
}
|