2019-08-27 14:07:41 +03:00
|
|
|
{ mkDerivation
|
|
|
|
, cmake
|
2020-10-18 15:32:15 +03:00
|
|
|
, fetchFromGitLab
|
2019-08-27 14:07:41 +03:00
|
|
|
, gst_all_1
|
|
|
|
, lib
|
|
|
|
, libpulseaudio
|
|
|
|
, ninja
|
|
|
|
, pcre
|
2020-10-18 15:32:15 +03:00
|
|
|
, pkg-config
|
2019-08-27 14:07:41 +03:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, taglib
|
|
|
|
, zlib
|
|
|
|
}:
|
2018-02-19 22:16:37 +03:00
|
|
|
|
2019-08-27 14:07:41 +03:00
|
|
|
mkDerivation rec {
|
2019-08-14 00:52:01 +03:00
|
|
|
pname = "sayonara-player";
|
2020-10-18 15:32:15 +03:00
|
|
|
version = "1.6.0-beta6";
|
2018-02-19 22:16:37 +03:00
|
|
|
|
2020-10-18 15:32:15 +03:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "luciocarreras";
|
|
|
|
repo = "sayonara-player";
|
2019-08-27 14:07:41 +03:00
|
|
|
rev = version;
|
2020-10-18 15:32:15 +03:00
|
|
|
sha256 = "sha256-SbJS0DQvbW++CNXbuDHQxFlLRb1kTtDdIdHOqu0YxeQ=";
|
2018-02-19 22:16:37 +03:00
|
|
|
};
|
|
|
|
|
2020-10-18 15:32:15 +03:00
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config qttools ];
|
2019-08-27 14:07:41 +03:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpulseaudio
|
|
|
|
pcre
|
|
|
|
qtbase
|
|
|
|
taglib
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
]);
|
|
|
|
|
|
|
|
# we carry the patched taglib 1.11.1 that doesn't break ogg but sayonara just
|
|
|
|
# checks for the version
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_SYSTEM_TAGLIB=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
# gstreamer cannot otherwise be found
|
2018-02-19 22:16:37 +03:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
|
|
|
|
2019-08-27 14:07:41 +03:00
|
|
|
postInstall = ''
|
|
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sayonara music player";
|
|
|
|
homepage = "https://sayonara-player.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ deepfire ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2018-02-19 22:16:37 +03:00
|
|
|
}
|