1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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-exslt-lib=${libxslt}/lib"
"--with-exslt-include=${libxslt}/include"
"--with-iconv-dir=${libiconv}"
];
] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
};
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
, 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

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