2017-04-08 04:33:27 +01:00
|
|
|
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake
|
|
|
|
, darwin }:
|
2010-09-26 20:40:15 +01:00
|
|
|
|
2019-08-04 19:39:18 +01:00
|
|
|
let version = "1.1.0"; in
|
2011-10-04 12:12:17 +01:00
|
|
|
|
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 {
|
2014-02-13 02:13:15 +00:00
|
|
|
url = "https://github.com/lastfm/liblastfm/tarball/${version}";
|
2011-10-04 12:12:17 +01:00
|
|
|
name = "${name}.tar.gz";
|
2019-08-04 19:39:18 +01:00
|
|
|
sha256 = "1j34xc30vg7sfszm2jx9mlz9hy7p1l929fka9wnfcpbib8gfi43x";
|
2010-09-26 20:40:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
2014-02-13 02:13:15 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which cmake ];
|
2017-04-08 04:33:27 +01:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
2010-09-26 20:40:15 +01:00
|
|
|
|
2018-10-18 19:51:13 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://github.com/lastfm/liblastfm;
|
2014-02-13 02:13:15 +00:00
|
|
|
repositories.git = git://github.com/lastfm/liblastfm.git;
|
2010-09-26 20:40:15 +01:00
|
|
|
description = "Official LastFM library";
|
|
|
|
inherit (qt4.meta) platforms;
|
2018-10-18 19:51:13 +01:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
license = licenses.gpl3;
|
2010-09-26 20:40:15 +01:00
|
|
|
};
|
|
|
|
}
|