ruby: fixup mpdcron

This commit is contained in:
Charles Strahan 2015-01-21 22:38:29 -05:00
parent 8085f088cb
commit 034488ec80
6 changed files with 45 additions and 8 deletions

View File

@ -1,2 +0,0 @@
---
BUNDLE_NO_INSTALL: true

View File

@ -63,8 +63,7 @@ in
"--with-xslt-include=${libxslt}/include" "--with-xslt-include=${libxslt}/include"
"--with-exslt-lib=${libxslt}/lib" "--with-exslt-lib=${libxslt}/lib"
"--with-exslt-include=${libxslt}/include" "--with-exslt-include=${libxslt}/include"
"--with-iconv-dir=${libiconv}" ] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
];
}; };
pg = attrs: { pg = attrs: {

View File

@ -0,0 +1,2 @@
source "https://rubygems.org"
gem "nokogiri"

View 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

View File

@ -1,7 +1,14 @@
{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, glib, libdaemon, buildRubyGem { 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"; version = "20130809";
name = "mpdcron-${version}"; name = "mpdcron-${version}";
@ -20,8 +27,8 @@ stdenv.mkDerivation rec {
}; };
buildInputs = buildInputs =
[ autoconf automake libtool pkgconfig glib libdaemon haskellPackages.pandoc [ autoconf automake libtool pkgconfig glib libdaemon pandoc
mpd_clientlib curl sqlite ruby /*nokogiri*/ libnotify ]; mpd_clientlib curl sqlite ruby gemEnv libnotify ];
preConfigure = '' preConfigure = ''
./autogen.sh ./autogen.sh

View 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"
];
};
}