2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, cmake
|
2020-10-19 23:25:03 +00:00
|
|
|
, fetchFromGitLab
|
2021-04-17 00:35:05 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, gst_all_1
|
|
|
|
, lib
|
|
|
|
, libpulseaudio
|
|
|
|
, ninja
|
|
|
|
, pcre
|
2020-10-19 23:25:03 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, taglib
|
|
|
|
, zlib
|
2021-04-17 00:35:05 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
let
|
|
|
|
py = python3.withPackages (ps: with ps; [
|
|
|
|
pydbus
|
|
|
|
]);
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
mkDerivation rec {
|
2021-04-17 00:35:05 +00:00
|
|
|
pname = "sayonara";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.7.0-stable3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-19 23:25:03 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "luciocarreras";
|
|
|
|
repo = "sayonara-player";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-tJ/8tGNkmTwWRCpPy/h85SP/6QDAgcaKWJdM5MSAXJw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-19 23:25:03 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpulseaudio
|
|
|
|
pcre
|
|
|
|
qtbase
|
|
|
|
taglib
|
|
|
|
zlib
|
2021-04-17 00:35:05 +00:00
|
|
|
py
|
2020-04-24 23:36:52 +00:00
|
|
|
]
|
|
|
|
++ (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
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
|
|
'';
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Sayonara music player";
|
|
|
|
homepage = "https://sayonara-player.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ deepfire ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|