2018-02-19 20:16:37 +01:00
{ stdenv , fetchurl , cmake , qt5 , zlib , taglib , pkgconfig , pcre , gst_all_1 }:
let
2018-09-03 06:18:38 +02:00
version = " 1 . 1 . 1 - g i t 1 - 2 0 1 8 0 8 2 8 " ;
2018-02-19 20:16:37 +01:00
in
stdenv . mkDerivation {
name = " s a y o n a r a - p l a y e r - ${ version } " ;
src = fetchurl {
url = " h t t p s : / / s a y o n a r a - p l a y e r . c o m / s w / s a y o n a r a - p l a y e r - ${ version } . t a r . g z " ;
2018-09-03 06:18:38 +02:00
sha256 = " 0 r v y 4 7 q v a v r p 0 3 z j d r w 0 2 5 d m q 9 f q 5 a a i i 3 q 1 q q 8 b 9 4 b y a r l 0 c 5 k n " ;
2018-02-19 20:16:37 +01:00
} ;
nativeBuildInputs = [ cmake pkgconfig ] ;
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 = ''
substituteInPlace src/GUI/Resources/Icons/CMakeLists.txt \
- - replace " / u s r / s h a r e " " $ o u t / s h a r e "
'' ;
# [ 65%] Building CXX object src/Components/Engine/CMakeFiles/say_comp_engine.dir/AbstractPipeline.cpp.o
# /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>
NIX_CFLAGS_COMPILE = " - I ${ gst_all_1 . gst-plugins-base . dev } / i n c l u d e / g s t r e a m e r - 1 . 0 " ;
meta = with stdenv . lib ;
{ description = " S a y o n a r a m u s i c p l a y e r " ;
homepage = https://sayonara-player.com/ ;
license = licenses . gpl3 ;
2018-09-03 06:18:38 +02:00
platforms = platforms . linux ;
2018-02-19 20:16:37 +01:00
maintainers = [ maintainers . deepfire ] ;
} ;
}