nixpkgs/pkgs/development/libraries/liblastfm/default.nix

30 lines
992 B
Nix
Raw Normal View History

2017-04-08 05:33:27 +02:00
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake
, darwin }:
2014-10-07 21:20:48 +02:00
let version = "1.0.9"; in
stdenv.mkDerivation rec {
name = "liblastfm-${version}";
# Upstream does not package git tags as tarballs. Get tarball from github.
src = fetchurl {
2014-02-13 03:13:15 +01:00
url = "https://github.com/lastfm/liblastfm/tarball/${version}";
name = "${name}.tar.gz";
2014-10-07 21:20:48 +02:00
sha256 = "09qiaxsxw6g2m7mvkffpfsi5wis8nl1x4lgnk0sa30859z54iw53";
};
prefixKey = "--prefix ";
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
2014-02-13 03:13:15 +01:00
nativeBuildInputs = [ pkgconfig which cmake ];
2017-04-08 05:33:27 +02:00
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
2018-10-18 20:51:13 +02:00
meta = with stdenv.lib; {
homepage = https://github.com/lastfm/liblastfm;
2014-02-13 03:13:15 +01:00
repositories.git = git://github.com/lastfm/liblastfm.git;
description = "Official LastFM library";
inherit (qt4.meta) platforms;
2018-10-18 20:51:13 +02:00
maintainers = [ maintainers.phreedom ];
license = licenses.gpl3;
};
}