2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, which, cmake
|
2020-06-08 19:17:46 +02:00
|
|
|
, fftwSinglePrec, libsamplerate, qtbase
|
2017-04-08 05:33:27 +02:00
|
|
|
, darwin }:
|
2010-09-26 21:40:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-14 23:01:44 +02:00
|
|
|
pname = "liblastfm-unstable";
|
|
|
|
version = "2019-08-23";
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2020-06-14 23:01:44 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lastfm";
|
|
|
|
repo = "liblastfm";
|
|
|
|
rev = "2ce2bfe1879227af8ffafddb82b218faff813db9";
|
|
|
|
sha256 = "1crih9xxf3rb109aqw12bjqv47z28lvlk2dpvyym5shf82nz6yd0";
|
2010-09-26 21:40:15 +02:00
|
|
|
};
|
|
|
|
|
2020-06-14 23:01:44 +02:00
|
|
|
patches = [(fetchpatch {
|
|
|
|
url = "https://github.com/lastfm/liblastfm/commit/9c5d072b55f2863310e40291677e6397e9cbc3c2.patch";
|
|
|
|
name = "0001-Remove-deprecated-staging-server-and-fix-test-for-QT5-at-Ubuntu-19.10.patch";
|
|
|
|
sha256 = "04r14prydxshjgfws3pjajjmp2msszhjjs1mjh8s66yg29vq620l";
|
|
|
|
})];
|
2020-06-08 19:17:46 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config which cmake ];
|
2020-06-08 19:17:46 +02:00
|
|
|
buildInputs = [ fftwSinglePrec libsamplerate qtbase ]
|
2021-01-21 18:00:13 +01:00
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
2010-09-26 21:40:15 +02:00
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/lastfm/liblastfm";
|
|
|
|
repositories.git = "git://github.com/lastfm/liblastfm.git";
|
2010-09-26 21:40:15 +02:00
|
|
|
description = "Official LastFM library";
|
2020-06-08 19:17:46 +02:00
|
|
|
platforms = platforms.unix;
|
2020-06-14 23:01:44 +02:00
|
|
|
maintainers = [ maintainers.phreedom ];
|
2018-10-18 20:51:13 +02:00
|
|
|
license = licenses.gpl3;
|
2010-09-26 21:40:15 +02:00
|
|
|
};
|
|
|
|
}
|