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