2014-02-13 03:13:15 +01:00
|
|
|
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake }:
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2014-02-13 03:13:15 +01:00
|
|
|
let version = "1.0.7"; in
|
2011-10-04 13:12:17 +02:00
|
|
|
|
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 {
|
2014-02-13 03:13:15 +01:00
|
|
|
url = "https://github.com/lastfm/liblastfm/tarball/${version}";
|
2011-10-04 13:12:17 +02:00
|
|
|
name = "${name}.tar.gz";
|
2014-02-13 03:13:15 +01:00
|
|
|
sha256 = "1837gd2azy8r34rcmsn2m1zngk4v2hpk7q0ii60dhjjvjaaswkwq";
|
2010-09-26 21:40:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
2014-02-13 03:13:15 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig which cmake ];
|
2010-09-26 21:40:15 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-02-13 03:13:15 +01:00
|
|
|
homepage = http://github.com/lastfm/liblastfm;
|
|
|
|
repositories.git = git://github.com/lastfm/liblastfm.git;
|
2010-09-26 21:40:15 +02:00
|
|
|
description = "Official LastFM library";
|
|
|
|
inherit (qt4.meta) platforms;
|
2014-02-13 03:13:15 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ urkud phreedom ];
|
2010-09-26 21:40:15 +02:00
|
|
|
};
|
|
|
|
}
|