Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 92 lines 1.5 kB view raw
1{ 2 mkDerivation, 3 lib, 4 extra-cmake-modules, 5 kdoctools, 6 ki18n, 7 xcb-util-cursor, 8 kconfig, 9 kcoreaddons, 10 kdbusaddons, 11 kdeclarative, 12 kio, 13 kipi-plugins, 14 knotifications, 15 kscreen, 16 kwidgetsaddons, 17 kwindowsystem, 18 kxmlgui, 19 libkipi, 20 qtx11extras, 21 knewstuff, 22 kwayland, 23 qttools, 24 kcolorpicker, 25 kimageannotator, 26 qcoro, 27 qtquickcontrols2, 28 wayland, 29 plasma-wayland-protocols, 30 kpurpose, 31 kpipewire, 32 wrapGAppsHook3, 33 wayland-scanner, 34}: 35 36mkDerivation { 37 pname = "spectacle"; 38 39 nativeBuildInputs = [ 40 extra-cmake-modules 41 kdoctools 42 wrapGAppsHook3 43 wayland-scanner 44 ]; 45 buildInputs = [ 46 kconfig 47 kcoreaddons 48 kdbusaddons 49 kdeclarative 50 ki18n 51 kio 52 knotifications 53 kscreen 54 kwidgetsaddons 55 kwindowsystem 56 kxmlgui 57 libkipi 58 qtx11extras 59 xcb-util-cursor 60 knewstuff 61 kwayland 62 kcolorpicker 63 kimageannotator 64 qcoro 65 qtquickcontrols2 66 wayland 67 plasma-wayland-protocols 68 kpurpose 69 kpipewire 70 ]; 71 postPatch = '' 72 substituteInPlace desktop/org.kde.spectacle.desktop.cmake \ 73 --replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus" 74 ''; 75 76 dontWrapGApps = true; 77 78 preFixup = '' 79 qtWrapperArgs+=("''${gappsWrapperArgs[@]}") 80 ''; 81 82 propagatedUserEnvPkgs = [ 83 kipi-plugins 84 libkipi 85 ]; 86 meta = with lib; { 87 homepage = "https://apps.kde.org/spectacle/"; 88 description = "Screenshot capture utility"; 89 mainProgram = "spectacle"; 90 maintainers = with maintainers; [ ttuegel ]; 91 }; 92}