| 
									
										
										
										
											2017-05-26 15:44:36 -05:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2020-06-27 10:40:02 -07:00
										 |  |  |   mkDerivation, fetchpatch, | 
					
						
							| 
									
										
										
										
											2017-05-26 15:44:36 -05:00
										 |  |  |   extra-cmake-modules, kdoctools, | 
					
						
							|  |  |  |   bluez-qt, kactivities, kauth, kconfig, kdbusaddons, kdelibs4support, | 
					
						
							|  |  |  |   kglobalaccel, ki18n, kidletime, kio, knotifyconfig, kwayland, libkscreen, | 
					
						
							| 
									
										
										
										
											2020-05-26 21:50:05 +08:00
										 |  |  |   ddcutil, networkmanager-qt, plasma-workspace, qtx11extras, solid, udev | 
					
						
							| 
									
										
										
										
											2016-07-10 11:33:21 +02:00
										 |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-15 11:44:58 -05:00
										 |  |  | mkDerivation { | 
					
						
							| 
									
										
										
										
											2016-07-10 11:33:21 +02:00
										 |  |  |   name = "powerdevil"; | 
					
						
							| 
									
										
										
										
											2017-02-26 06:49:15 -06:00
										 |  |  |   nativeBuildInputs = [ extra-cmake-modules kdoctools ]; | 
					
						
							| 
									
										
										
										
											2017-05-26 15:44:36 -05:00
										 |  |  |   buildInputs = [ | 
					
						
							| 
									
										
										
										
											2016-07-10 11:33:21 +02:00
										 |  |  |     kconfig kdbusaddons knotifyconfig solid udev bluez-qt kactivities kauth | 
					
						
							|  |  |  |     kdelibs4support kglobalaccel ki18n kio kidletime kwayland libkscreen | 
					
						
							|  |  |  |     networkmanager-qt plasma-workspace qtx11extras | 
					
						
							| 
									
										
										
										
											2020-05-26 21:50:05 +08:00
										 |  |  |     ddcutil | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  |   cmakeFlags = [ | 
					
						
							|  |  |  |     "-DHAVE_DDCUTIL=On" | 
					
						
							| 
									
										
										
										
											2016-07-10 11:33:21 +02:00
										 |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2020-06-27 10:40:02 -07:00
										 |  |  |   patches = [ | 
					
						
							|  |  |  |     # This fixes an issue where 'DDCA_Feature_List*' cannot be converted to | 
					
						
							|  |  |  |     # 'DDCA_Feature_List'. | 
					
						
							|  |  |  |     # This can be dropped with the next release. | 
					
						
							|  |  |  |     # https://bugs.kde.org/show_bug.cgi?id=423605 | 
					
						
							|  |  |  |     (fetchpatch { | 
					
						
							|  |  |  |       url = "https://invent.kde.org/plasma/powerdevil/-/commit/fcb26be2fb279e6ad3b7b814d26a5921d16201eb.patch"; | 
					
						
							|  |  |  |       sha256 = "0gdyaa0nd1c1d6x2h0m933lascm8zm5sikd99wxmkf7hhaby6k2s"; | 
					
						
							|  |  |  |     }) | 
					
						
							| 
									
										
										
										
											2020-07-31 00:48:07 -07:00
										 |  |  |     # This is a backport of | 
					
						
							|  |  |  |     # https://invent.kde.org/plasma/powerdevil/-/commit/c7590f9065ec9547b7fabad77a548bbc0c693113.patch, | 
					
						
							|  |  |  |     # which doesn't apply cleanly to 5.17.5.  It should make it into 5.20, so | 
					
						
							|  |  |  |     # this patch can be removed when we upgrade to 5.20. | 
					
						
							|  |  |  |     ./patches/0001-Add-a-logging-category-config-file.patch | 
					
						
							| 
									
										
										
										
											2020-06-27 10:40:02 -07:00
										 |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2016-07-10 11:33:21 +02:00
										 |  |  | } |