forked from mirrors/nixpkgs
sayonara: 1.1.1 -> 1.5.1
This commit is contained in:
parent
65000c0ff8
commit
aba7db77e9
pkgs
|
@ -1,46 +1,82 @@
|
||||||
{ stdenv, fetchurl, cmake, qt5, zlib, taglib, pkgconfig, pcre, gst_all_1 }:
|
{ mkDerivation
|
||||||
|
, cmake
|
||||||
|
, fetchgit
|
||||||
|
, gst_all_1
|
||||||
|
, lib
|
||||||
|
, libpulseaudio
|
||||||
|
, ninja
|
||||||
|
, pcre
|
||||||
|
, pkgconfig
|
||||||
|
, qtbase
|
||||||
|
, qttools
|
||||||
|
, taglib
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
mkDerivation rec {
|
||||||
version = "1.1.1-git1-20180828";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "sayonara-player";
|
pname = "sayonara-player";
|
||||||
inherit version;
|
version = "1.5.1-stable5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchgit {
|
||||||
url = "https://sayonara-player.com/sw/sayonara-player-${version}.tar.gz";
|
url = "https://git.sayonara-player.com/sayonara.git";
|
||||||
sha256 = "0rvy47qvavrp03zjdrw025dmq9fq5aaii3q1qq8b94byarl0c5kn";
|
rev = version;
|
||||||
|
sha256 = "13l7r3gaszrkyf4z8rdijfzxvcnilax4ki2mcm30wqk8d4g4qdzj";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
# all this can go with version 1.5.2
|
||||||
buildInputs = with qt5; with gst_all_1;
|
|
||||||
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly
|
|
||||||
pcre qtbase qttools taglib zlib
|
|
||||||
];
|
|
||||||
|
|
||||||
# CMake Error at src/GUI/Resources/Icons/cmake_install.cmake:49 (file):
|
|
||||||
# file cannot create directory: /usr/share/icons. Maybe need administrative
|
|
||||||
# privileges.
|
|
||||||
# Call Stack (most recent call first):
|
|
||||||
# src/GUI/Resources/cmake_install.cmake:50 (include)
|
|
||||||
# src/GUI/cmake_install.cmake:50 (include)
|
|
||||||
# src/cmake_install.cmake:59 (include)
|
|
||||||
# cmake_install.cmake:42 (include)
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/GUI/Resources/Icons/CMakeLists.txt \
|
# if we don't delete this, sayonara will look here instead of the provided taglib
|
||||||
--replace "/usr/share" "$out/share"
|
rm -r src/3rdParty/taglib
|
||||||
|
|
||||||
|
for f in \
|
||||||
|
src/DBus/DBusNotifications.cpp \
|
||||||
|
src/Gui/Resources/Icons/CMakeLists.txt \
|
||||||
|
src/Utils/Utils.cpp \
|
||||||
|
test/Util/FileHelperTest.cpp \
|
||||||
|
; do
|
||||||
|
|
||||||
|
substituteInPlace $f --replace /usr $out
|
||||||
|
done
|
||||||
|
|
||||||
|
substituteInPlace src/Components/Shutdown/Shutdown.cpp \
|
||||||
|
--replace /usr/bin/systemctl systemctl
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# [ 65%] Building CXX object src/Components/Engine/CMakeFiles/say_comp_engine.dir/AbstractPipeline.cpp.o
|
nativeBuildInputs = [ cmake ninja pkgconfig qttools ];
|
||||||
# /tmp/nix-build-sayonara-player-1.0.0-git5-20180115.drv-0/sayonara-player/src/Components/Engine/AbstractPipeline.cpp:28:32: fatal error: gst/app/gstappsink.h: No such file or directory
|
|
||||||
# #include <gst/app/gstappsink.h>
|
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
|
||||||
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
||||||
|
|
||||||
meta = with stdenv.lib;
|
postInstall = ''
|
||||||
{ description = "Sayonara music player";
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||||
homepage = https://sayonara-player.com/;
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Sayonara music player";
|
||||||
|
homepage = "https://sayonara-player.com/";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
maintainers = with maintainers; [ deepfire ];
|
||||||
maintainers = [ maintainers.deepfire ];
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20384,7 +20384,7 @@ in
|
||||||
|
|
||||||
sakura = callPackage ../applications/misc/sakura { };
|
sakura = callPackage ../applications/misc/sakura { };
|
||||||
|
|
||||||
sayonara = callPackage ../applications/audio/sayonara { };
|
sayonara = libsForQt5.callPackage ../applications/audio/sayonara { };
|
||||||
|
|
||||||
sbagen = callPackage ../applications/misc/sbagen { };
|
sbagen = callPackage ../applications/misc/sbagen { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue