| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  | { mkDerivation | 
					
						
							|  |  |  | , stdenv | 
					
						
							|  |  |  | , lib | 
					
						
							|  |  |  | , fetchFromGitHub | 
					
						
							|  |  |  | , cmake | 
					
						
							|  |  |  | , pkgconfig | 
					
						
							|  |  |  | , alsaLib | 
					
						
							|  |  |  | , boost | 
					
						
							|  |  |  | , chromaprint | 
					
						
							|  |  |  | , fftw | 
					
						
							|  |  |  | , gnutls | 
					
						
							|  |  |  | , libcdio | 
					
						
							|  |  |  | , libmtp | 
					
						
							|  |  |  | , libpthreadstubs | 
					
						
							|  |  |  | , libtasn1 | 
					
						
							|  |  |  | , libXdmcp | 
					
						
							| 
									
										
										
										
											2019-09-06 13:01:03 +08:00
										 |  |  | , ninja | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  | , pcre | 
					
						
							|  |  |  | , protobuf | 
					
						
							|  |  |  | , sqlite | 
					
						
							|  |  |  | , taglib | 
					
						
							|  |  |  | , libpulseaudio ? null | 
					
						
							|  |  |  | , libselinux ? null | 
					
						
							|  |  |  | , libsepol ? null | 
					
						
							| 
									
										
										
										
											2019-11-23 21:27:27 +01:00
										 |  |  | , p11-kit ? null | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  | , utillinux ? null | 
					
						
							|  |  |  | , qtbase | 
					
						
							|  |  |  | , qtx11extras | 
					
						
							|  |  |  | , qttools | 
					
						
							|  |  |  | , withGstreamer ? true | 
					
						
							|  |  |  | , gst_all_1 ? null | 
					
						
							|  |  |  | , withVlc ? true | 
					
						
							|  |  |  | , vlc ? null | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mkDerivation rec { | 
					
						
							|  |  |  |   pname = "strawberry"; | 
					
						
							| 
									
										
										
										
											2020-01-26 11:54:02 +00:00
										 |  |  |   version = "0.6.8"; | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchFromGitHub { | 
					
						
							|  |  |  |     owner = "jonaski"; | 
					
						
							|  |  |  |     repo = pname; | 
					
						
							|  |  |  |     rev = version; | 
					
						
							| 
									
										
										
										
											2020-01-26 11:54:02 +00:00
										 |  |  |     sha256 = "0jc1m1855dg3f1i1p744c5s42ssmjs61znw4cf28ifamw1nbr1r5"; | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   buildInputs = [ | 
					
						
							|  |  |  |     alsaLib | 
					
						
							|  |  |  |     boost | 
					
						
							|  |  |  |     chromaprint | 
					
						
							|  |  |  |     fftw | 
					
						
							|  |  |  |     gnutls | 
					
						
							|  |  |  |     libcdio | 
					
						
							|  |  |  |     libmtp | 
					
						
							|  |  |  |     libpthreadstubs | 
					
						
							|  |  |  |     libtasn1 | 
					
						
							|  |  |  |     libXdmcp | 
					
						
							|  |  |  |     pcre | 
					
						
							|  |  |  |     protobuf | 
					
						
							|  |  |  |     sqlite | 
					
						
							|  |  |  |     taglib | 
					
						
							|  |  |  |     qtbase | 
					
						
							|  |  |  |     qtx11extras | 
					
						
							|  |  |  |   ] | 
					
						
							|  |  |  |   ++ lib.optionals stdenv.isLinux [ | 
					
						
							|  |  |  |     libpulseaudio | 
					
						
							|  |  |  |     libselinux | 
					
						
							|  |  |  |     libsepol | 
					
						
							| 
									
										
										
										
											2019-11-23 21:27:27 +01:00
										 |  |  |     p11-kit | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |     utillinux | 
					
						
							|  |  |  |   ] | 
					
						
							|  |  |  |   ++ lib.optionals withGstreamer (with gst_all_1; [ | 
					
						
							|  |  |  |     gstreamer | 
					
						
							|  |  |  |     gst-plugins-base | 
					
						
							|  |  |  |     gst-plugins-good | 
					
						
							| 
									
										
										
										
											2019-09-06 13:01:03 +08:00
										 |  |  |     gst-plugins-ugly | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |   ]) | 
					
						
							|  |  |  |   ++ lib.optional withVlc vlc; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-06 13:01:03 +08:00
										 |  |  |   nativeBuildInputs = [ cmake ninja pkgconfig qttools ]; | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   cmakeFlags = [ | 
					
						
							|  |  |  |     "-DUSE_SYSTEM_TAGLIB=ON" | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-06 13:01:03 +08:00
										 |  |  |   postInstall = ''
 | 
					
						
							|  |  |  |     qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0") | 
					
						
							|  |  |  |   '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |   meta = with lib; { | 
					
						
							|  |  |  |     description = "Music player and music collection organizer"; | 
					
						
							| 
									
										
										
										
											2019-10-24 08:34:39 -07:00
										 |  |  |     homepage = "https://www.strawberrymusicplayer.org/"; | 
					
						
							|  |  |  |     changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog"; | 
					
						
							|  |  |  |     license = licenses.gpl3; | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |     maintainers = with maintainers; [ peterhoeg ]; | 
					
						
							| 
									
										
										
										
											2019-11-29 07:29:40 -08:00
										 |  |  |     # upstream says darwin should work but they lack maintainers as of 0.6.6 | 
					
						
							| 
									
										
										
										
											2019-08-28 13:24:53 +08:00
										 |  |  |     platforms = platforms.linux; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |