3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/liblastfm/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

2020-06-08 18:17:46 +01:00
{ stdenv, fetchurl, pkgconfig, which, cmake
, fftwSinglePrec, libsamplerate, qtbase
2017-04-08 04:33:27 +01:00
, darwin }:
let version = "1.1.0"; in
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "liblastfm";
inherit version;
# Upstream does not package git tags as tarballs. Get tarball from github.
src = fetchurl {
2014-02-13 02:13:15 +00:00
url = "https://github.com/lastfm/liblastfm/tarball/${version}";
2019-08-13 22:52:01 +01:00
name = "${pname}-${version}.tar.gz";
sha256 = "1j34xc30vg7sfszm2jx9mlz9hy7p1l929fka9wnfcpbib8gfi43x";
};
2020-06-08 18:17:46 +01:00
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'find_package(Qt5Core QUIET)' \
'find_package(Qt5 REQUIRED COMPONENTS Core Network Sql Test Xml)'
'';
prefixKey = "--prefix ";
2014-02-13 02:13:15 +00:00
nativeBuildInputs = [ pkgconfig which cmake ];
2020-06-08 18:17:46 +01:00
buildInputs = [ fftwSinglePrec libsamplerate qtbase ]
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
2018-10-18 19:51:13 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/lastfm/liblastfm";
repositories.git = "git://github.com/lastfm/liblastfm.git";
description = "Official LastFM library";
2020-06-08 18:17:46 +01:00
platforms = platforms.unix;
2018-10-18 19:51:13 +01:00
maintainers = [ maintainers.phreedom ];
license = licenses.gpl3;
};
}