2012-02-19 11:59:31 +01:00
|
|
|
{ stdenv, fetchurl, ruby, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which }:
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2011-10-04 13:12:17 +02:00
|
|
|
let version = "0.3.3"; in
|
|
|
|
|
2010-09-26 21:40:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-10-04 13:12:17 +02:00
|
|
|
name = "liblastfm-${version}";
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2011-10-04 13:12:17 +02:00
|
|
|
# Upstream does not package git tags as tarballs. Get tarball from github.
|
2010-09-26 21:40:15 +02:00
|
|
|
src = fetchurl {
|
2011-10-04 13:12:17 +02:00
|
|
|
url = "https://github.com/mxcl/liblastfm/tarball/${version}";
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
sha256 = "0v33vzj89mgx2pc5fmiywlz51i553ckydw9xz70fiflm2inbl1r6";
|
2010-09-26 21:40:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ ruby pkgconfig which ];
|
2011-10-04 13:12:17 +02:00
|
|
|
|
|
|
|
configureFlags = "--release";
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2011-10-04 13:12:17 +02:00
|
|
|
patches = [ ./ruby-1.9.patch ];
|
|
|
|
postPatch = "patchShebangs .";
|
2010-09-26 21:40:15 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://github.com/mxcl/liblastfm;
|
|
|
|
description = "Official LastFM library";
|
|
|
|
inherit (qt4.meta) platforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
|
|
};
|
|
|
|
}
|