liblastfm: fix compilation with ruby-1.9.x

svn path=/nixpkgs/trunk/; revision=29623
This commit is contained in:
Yury G. Kudryashov
2011-10-04 11:12:17 +00:00
parent dd19f22e7e
commit 4bd5a070d4
2 changed files with 58 additions and 6 deletions
@@ -1,18 +1,25 @@
{ stdenv, fetchurl, ruby, qt4, pkgconfig, libsamplerate, fftwSinglePrec }:
stdenv.mkDerivation rec {
name = "liblastfm-0.3.0";
let version = "0.3.3"; in
stdenv.mkDerivation rec {
name = "liblastfm-${version}";
# Upstream does not package git tags as tarballs. Get tarball from github.
src = fetchurl {
url = "http://cdn.last.fm/src/${name}.tar.bz2";
sha256 = "0vgpkbqmynm975nlcw3caxpz30wvvz35c7a9kfr2wjqizvxrfwnx";
url = "https://github.com/mxcl/liblastfm/tarball/${version}";
name = "${name}.tar.gz";
sha256 = "0v33vzj89mgx2pc5fmiywlz51i553ckydw9xz70fiflm2inbl1r6";
};
prefixKey = "--prefix ";
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
buildInputs = [ ruby pkgconfig ];
buildNativeInputs = [ ruby pkgconfig ];
patchPhase = "patchShebangs .";
configureFlags = "--release";
patches = [ ./ruby-1.9.patch ];
postPatch = "patchShebangs .";
meta = {
homepage = http://github.com/mxcl/liblastfm;