ruby: fixup mpdcron
This commit is contained in:
parent
8085f088cb
commit
034488ec80
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
BUNDLE_NO_INSTALL: true
|
|
@ -63,8 +63,7 @@ in
|
|||
"--with-xslt-include=${libxslt}/include"
|
||||
"--with-exslt-lib=${libxslt}/lib"
|
||||
"--with-exslt-include=${libxslt}/include"
|
||||
"--with-iconv-dir=${libiconv}"
|
||||
];
|
||||
] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
|
||||
};
|
||||
|
||||
pg = attrs: {
|
||||
|
|
2
pkgs/tools/audio/mpdcron/Gemfile
Normal file
2
pkgs/tools/audio/mpdcron/Gemfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
source "https://rubygems.org"
|
||||
gem "nokogiri"
|
12
pkgs/tools/audio/mpdcron/Gemfile.lock
Normal file
12
pkgs/tools/audio/mpdcron/Gemfile.lock
Normal file
|
@ -0,0 +1,12 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
mini_portile (0.6.2)
|
||||
nokogiri (1.6.5)
|
||||
mini_portile (~> 0.6.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
nokogiri
|
|
@ -1,7 +1,14 @@
|
|||
{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, glib, libdaemon, buildRubyGem
|
||||
, mpd_clientlib, curl, sqlite, ruby, rubyPackages, libnotify, pandoc }:
|
||||
, mpd_clientlib, curl, sqlite, ruby, bundlerEnv, libnotify, pandoc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
gemEnv = bundlerEnv {
|
||||
name = "mpdcron-bundle";
|
||||
gemfile = ./Gemfile;
|
||||
lockfile = ./Gemfile.lock;
|
||||
gemset = ./gemset.nix;
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "20130809";
|
||||
name = "mpdcron-${version}";
|
||||
|
||||
|
@ -20,8 +27,8 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs =
|
||||
[ autoconf automake libtool pkgconfig glib libdaemon haskellPackages.pandoc
|
||||
mpd_clientlib curl sqlite ruby /*nokogiri*/ libnotify ];
|
||||
[ autoconf automake libtool pkgconfig glib libdaemon pandoc
|
||||
mpd_clientlib curl sqlite ruby gemEnv libnotify ];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
|
|
19
pkgs/tools/audio/mpdcron/gemset.nix
Normal file
19
pkgs/tools/audio/mpdcron/gemset.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"mini_portile" = {
|
||||
version = "0.6.2";
|
||||
source = {
|
||||
type = "gem";
|
||||
sha256 = "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w";
|
||||
};
|
||||
};
|
||||
"nokogiri" = {
|
||||
version = "1.6.5";
|
||||
source = {
|
||||
type = "gem";
|
||||
sha256 = "1xmxz6fa0m4p7c7ngpgz6gjgv65lzz63dsf0b6vh7gs2fkiw8j7l";
|
||||
};
|
||||
dependencies = [
|
||||
"mini_portile"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue