2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, withMtp ? true, libmtp, pkg-config, which, qt4, qmake4Hook }:
|
2016-02-09 13:45:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qtscrobbler";
|
2016-02-09 13:45:04 +00:00
|
|
|
version = "0.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/qtscrob/qtscrob/${version}/qtscrob-${version}.tar.bz2";
|
|
|
|
sha256 = "01c8e48f616ed09504833d27d92fd62f455bd645ea2d1cc2a5f4c287d641daba";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ qmake4Hook ] ++ lib.optionals withMtp [ pkg-config which ];
|
2016-02-09 13:45:04 +00:00
|
|
|
buildInputs = [ qt4 ] ++ lib.optional withMtp libmtp;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd src
|
2016-04-17 00:25:36 +01:00
|
|
|
sed -i -e "s,/usr/local,$out," -e "s,/usr,," common.pri
|
2016-02-09 13:45:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Qt based last.fm scrobbler";
|
|
|
|
longDescription = ''
|
|
|
|
QTScrobbler is a tool to upload information about the tracks you have played from your Digital Audio Player (DAP) to your last.fm account.
|
|
|
|
It is able to gather this information from Apple iPods or DAPs running the Rockbox replacement firmware.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://qtscrob.sourceforge.net";
|
2016-02-09 13:45:04 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.vanzef ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|