2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, which, cmake
|
2020-06-18 07:06:33 +00:00
|
|
|
, fftwSinglePrec, libsamplerate, qtbase
|
2020-04-24 23:36:52 +00:00
|
|
|
, darwin }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "liblastfm-unstable";
|
|
|
|
version = "2019-08-23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lastfm";
|
|
|
|
repo = "liblastfm";
|
|
|
|
rev = "2ce2bfe1879227af8ffafddb82b218faff813db9";
|
|
|
|
sha256 = "1crih9xxf3rb109aqw12bjqv47z28lvlk2dpvyym5shf82nz6yd0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00: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";
|
|
|
|
})];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which cmake ];
|
2020-06-18 07:06:33 +00:00
|
|
|
buildInputs = [ fftwSinglePrec libsamplerate qtbase ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lastfm/liblastfm";
|
|
|
|
description = "Official LastFM library";
|
2020-06-18 07:06:33 +00:00
|
|
|
platforms = platforms.unix;
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|