at 23.05-pre 194 lines 7.3 kB view raw
1/* 2 3# New packages 4 5READ THIS FIRST 6 7This module is for official packages in KDE Frameworks 5. All available packages 8are listed in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see 9below). 10 11IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE. 12 13Many of the packages released upstream are not yet built in Nixpkgs due to lack 14of demand. To add a Nixpkgs build for an upstream package, copy one of the 15existing packages here and modify it as necessary. 16 17# Updates 18 191. Update the URL in `./fetch.sh`. 202. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/kde-frameworks` 21 from the top of the Nixpkgs tree. 223. Use `nox-review wip` to check that everything builds. 234. Commit the changes and open a pull request. 24 25*/ 26 27{ libsForQt5, lib, fetchurl }: 28 29let 30 31 minQtVersion = "5.15"; 32 broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion; 33 maintainers = with lib.maintainers; [ ttuegel nyanloutre ]; 34 license = with lib.licenses; [ 35 lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12Plus 36 ]; 37 38 srcs = import ./srcs.nix { 39 inherit fetchurl; 40 mirror = "mirror://kde"; 41 }; 42 43 mkDerivation = libsForQt5.callPackage ({ stdenv, mkDerivation ? stdenv.mkDerivation }: mkDerivation) {}; 44 45 packages = self: with self; 46 # SUPPORT 47 let 48 49 propagate = out: 50 let setupHook = { writeScript }: 51 writeScript "setup-hook" '' 52 if [ "''${hookName:-}" != postHook ]; then 53 postHooks+=("source @dev@/nix-support/setup-hook") 54 else 55 # Propagate $dev so that this setup hook is propagated 56 # But only if there is a separate $dev output 57 if [ "''${outputDev:?}" != out ]; then 58 propagatedBuildInputs="''${propagatedBuildInputs-} @dev@" 59 fi 60 fi 61 ''; 62 in callPackage setupHook {}; 63 64 propagateBin = propagate "bin"; 65 66 callPackage = self.newScope { 67 68 inherit propagate propagateBin; 69 70 mkDerivation = args: 71 let 72 73 inherit (args) pname; 74 inherit (srcs.${pname}) src version; 75 76 outputs = args.outputs or [ "bin" "dev" "out" ]; 77 hasSeparateDev = lib.elem "dev" outputs; 78 79 defaultSetupHook = if hasSeparateDev then propagateBin else null; 80 setupHook = args.setupHook or defaultSetupHook; 81 82 meta = 83 let meta = args.meta or {}; in 84 meta // { 85 homepage = meta.homepage or "https://kde.org"; 86 license = meta.license or license; 87 maintainers = (meta.maintainers or []) ++ maintainers; 88 platforms = meta.platforms or lib.platforms.linux; 89 broken = meta.broken or broken; 90 }; 91 92 in mkDerivation (args // { 93 inherit pname meta outputs setupHook src version; 94 }); 95 96 }; 97 98 in { 99 extra-cmake-modules = callPackage ./extra-cmake-modules {}; 100 101 # TIER 1 102 attica = callPackage ./attica.nix {}; 103 bluez-qt = callPackage ./bluez-qt.nix {}; 104 breeze-icons = callPackage ./breeze-icons.nix {}; 105 kapidox = callPackage ./kapidox.nix {}; 106 karchive = callPackage ./karchive.nix {}; 107 kcalendarcore = callPackage ./kcalendarcore.nix {}; 108 kcodecs = callPackage ./kcodecs.nix {}; 109 kconfig = callPackage ./kconfig.nix {}; 110 kcontacts = callPackage ./kcontacts.nix {}; 111 kcoreaddons = callPackage ./kcoreaddons.nix {}; 112 kdbusaddons = callPackage ./kdbusaddons.nix {}; 113 kdnssd = callPackage ./kdnssd.nix {}; 114 kguiaddons = callPackage ./kguiaddons.nix {}; 115 kholidays = callPackage ./kholidays.nix {}; 116 ki18n = callPackage ./ki18n.nix {}; 117 kidletime = callPackage ./kidletime.nix {}; 118 kirigami2 = callPackage ./kirigami2.nix {}; 119 kitemmodels = callPackage ./kitemmodels.nix {}; 120 kitemviews = callPackage ./kitemviews.nix {}; 121 kplotting = callPackage ./kplotting.nix {}; 122 kquickcharts = callPackage ./kquickcharts.nix {}; 123 kwayland = callPackage ./kwayland.nix {}; 124 kwidgetsaddons = callPackage ./kwidgetsaddons.nix {}; 125 kwindowsystem = callPackage ./kwindowsystem {}; 126 modemmanager-qt = callPackage ./modemmanager-qt.nix {}; 127 networkmanager-qt = callPackage ./networkmanager-qt.nix {}; 128 oxygen-icons5 = callPackage ./oxygen-icons5.nix {}; 129 prison = callPackage ./prison.nix {}; 130 qqc2-desktop-style = callPackage ./qqc2-desktop-style.nix {}; 131 solid = callPackage ./solid.nix {}; 132 sonnet = callPackage ./sonnet.nix {}; 133 syntax-highlighting = callPackage ./syntax-highlighting.nix {}; 134 threadweaver = callPackage ./threadweaver.nix {}; 135 136 # TIER 2 137 kactivities = callPackage ./kactivities.nix {}; 138 kactivities-stats = callPackage ./kactivities-stats.nix {}; 139 kauth = callPackage ./kauth {}; 140 kcompletion = callPackage ./kcompletion.nix {}; 141 kcrash = callPackage ./kcrash.nix {}; 142 kdoctools = callPackage ./kdoctools {}; 143 kfilemetadata = callPackage ./kfilemetadata {}; 144 kimageformats = callPackage ./kimageformats.nix {}; 145 kjobwidgets = callPackage ./kjobwidgets.nix {}; 146 knotifications = callPackage ./knotifications.nix {}; 147 kpackage = callPackage ./kpackage {}; 148 kpty = callPackage ./kpty.nix {}; 149 kunitconversion = callPackage ./kunitconversion.nix {}; 150 syndication = callPackage ./syndication.nix {}; 151 152 # TIER 3 153 baloo = callPackage ./baloo.nix {}; 154 kbookmarks = callPackage ./kbookmarks.nix {}; 155 kcmutils = callPackage ./kcmutils.nix {}; 156 kconfigwidgets = callPackage ./kconfigwidgets.nix {}; 157 kdav = callPackage ./kdav.nix {}; 158 kdeclarative = callPackage ./kdeclarative.nix {}; 159 kded = callPackage ./kded.nix {}; 160 kdesignerplugin = callPackage ./kdesignerplugin.nix {}; 161 kdesu = callPackage ./kdesu {}; 162 kemoticons = callPackage ./kemoticons.nix {}; 163 kglobalaccel = callPackage ./kglobalaccel.nix {}; 164 kiconthemes = callPackage ./kiconthemes {}; 165 kinit = callPackage ./kinit {}; 166 kio = callPackage ./kio {}; 167 knewstuff = callPackage ./knewstuff {}; 168 knotifyconfig = callPackage ./knotifyconfig.nix {}; 169 kparts = callPackage ./kparts.nix {}; 170 kpeople = callPackage ./kpeople.nix {}; 171 krunner = callPackage ./krunner.nix {}; 172 kservice = callPackage ./kservice {}; 173 ktexteditor = callPackage ./ktexteditor.nix {}; 174 ktextwidgets = callPackage ./ktextwidgets.nix {}; 175 kwallet = callPackage ./kwallet.nix {}; 176 kxmlgui = callPackage ./kxmlgui.nix {}; 177 kxmlrpcclient = callPackage ./kxmlrpcclient.nix {}; 178 plasma-framework = callPackage ./plasma-framework.nix {}; 179 kpurpose = callPackage ./purpose.nix {}; 180 181 # TIER 4 182 frameworkintegration = callPackage ./frameworkintegration.nix {}; 183 184 # PORTING AIDS 185 kdelibs4support = callPackage ./kdelibs4support {}; 186 khtml = callPackage ./khtml.nix {}; 187 kjs = callPackage ./kjs.nix {}; 188 kjsembed = callPackage ./kjsembed.nix {}; 189 kmediaplayer = callPackage ./kmediaplayer.nix {}; 190 kross = callPackage ./kross.nix {}; 191 192 }; 193 194in lib.makeScope libsForQt5.newScope packages