mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
92 lines
1.7 KiB
Nix
92 lines
1.7 KiB
Nix
{
|
|
mkDerivation,
|
|
cmake,
|
|
fetchFromGitLab,
|
|
nix-update-script,
|
|
gst_all_1,
|
|
lib,
|
|
libpulseaudio,
|
|
ninja,
|
|
pcre,
|
|
pkg-config,
|
|
qtbase,
|
|
qttools,
|
|
taglib,
|
|
zlib,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
py = python3.withPackages (
|
|
ps: with ps; [
|
|
pydbus
|
|
]
|
|
);
|
|
in
|
|
mkDerivation rec {
|
|
pname = "sayonara";
|
|
version = "1.10.0-stable1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "luciocarreras";
|
|
repo = "sayonara-player";
|
|
rev = version;
|
|
hash = "sha256-ZcuWe1dsLJS4/nLXSSKB7wzPU9COFyE4vPSwZIo0bgI=";
|
|
};
|
|
|
|
# error: no matching function for call to 'max'
|
|
postPatch = ''
|
|
substituteInPlace src/Components/Playlist/PlaylistModifiers.cpp \
|
|
--replace-fail "std::max" "std::max<MilliSeconds>"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
qttools
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
libpulseaudio
|
|
pcre
|
|
qtbase
|
|
taglib
|
|
zlib
|
|
py
|
|
]
|
|
++ (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
|
|
env.NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
|
|
|
postInstall = ''
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Sayonara music player";
|
|
homepage = "https://sayonara-player.com/";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ deepfire ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|