lol

Merge branch 'kdenetwork-filesharing'

+145 -2
+2
nixos/modules/services/x11/desktop-managers/kde5.nix
··· 102 102 kde5.gwenview 103 103 kde5.kate 104 104 kde5.kdegraphics-thumbnailers 105 + kde5.kio-extras 105 106 kde5.konsole 106 107 kde5.okular 107 108 kde5.print-manager ··· 125 126 ++ lib.optional config.networking.networkmanager.enable kde5.plasma-nm 126 127 ++ lib.optional config.hardware.pulseaudio.enable kde5.plasma-pa 127 128 ++ lib.optional config.powerManagement.enable kde5.powerdevil 129 + ++ lib.optionals config.services.samba.enable [ kde5.kdenetwork-filesharing pkgs.samba ] 128 130 129 131 ++ lib.optionals cfg.phonon.gstreamer.enable 130 132 [
+2
pkgs/applications/kde-apps-15.12/default.nix
··· 39 39 gwenview = callPackage ./gwenview.nix {}; 40 40 kate = callPackage ./kate.nix {}; 41 41 kdegraphics-thumbnailers = callPackage ./kdegraphics-thumbnailers.nix {}; 42 + kdenetwork-filesharing = callPackage ./kdenetwork-filesharing.nix {}; 42 43 kgpg = callPackage ./kgpg.nix { inherit (pkgs.kde4) kdepimlibs; }; 44 + kio-extras = callPackage ./kio-extras.nix {}; 43 45 konsole = callPackage ./konsole.nix {}; 44 46 libkdcraw = callPackage ./libkdcraw.nix {}; 45 47 libkexiv2 = callPackage ./libkexiv2.nix {};
+29
pkgs/applications/kde-apps-15.12/kdenetwork-filesharing.nix
··· 1 + { kdeApp 2 + , lib 3 + , extra-cmake-modules 4 + , kdoctools 5 + , kcoreaddons 6 + , ki18n 7 + , kio 8 + , kwidgetsaddons 9 + , samba 10 + }: 11 + 12 + kdeApp { 13 + name = "kdenetwork-filesharing"; 14 + nativeBuildInputs = [ 15 + extra-cmake-modules 16 + kdoctools 17 + ]; 18 + buildInputs = [ 19 + kcoreaddons 20 + ki18n 21 + kio 22 + kwidgetsaddons 23 + samba 24 + ]; 25 + meta = { 26 + license = [ lib.licenses.gpl2 lib.licenses.lgpl21 ]; 27 + maintainers = [ lib.maintainers.ttuegel ]; 28 + }; 29 + }
+58
pkgs/applications/kde-apps-15.12/kio-extras.nix
··· 1 + { kdeApp, lib 2 + , extra-cmake-modules, kdoctools 3 + , shared_mime_info 4 + , exiv2 5 + , karchive 6 + , kbookmarks 7 + , kconfig, kconfigwidgets 8 + , kcoreaddons, kdbusaddons, kguiaddons 9 + , kdnssd 10 + , kiconthemes 11 + , ki18n 12 + , kio 13 + , khtml 14 + , kdelibs4support 15 + , kpty 16 + , libmtp 17 + , libssh 18 + , openexr 19 + , openslp 20 + , phonon 21 + , qtsvg 22 + , samba 23 + , solid 24 + }: 25 + 26 + kdeApp { 27 + name = "kio-extras"; 28 + nativeBuildInputs = [ 29 + extra-cmake-modules kdoctools 30 + shared_mime_info 31 + ]; 32 + buildInputs = [ 33 + exiv2 34 + karchive 35 + kbookmarks 36 + kconfig kconfigwidgets 37 + kcoreaddons kdbusaddons kguiaddons 38 + kdnssd 39 + kiconthemes 40 + ki18n 41 + kio 42 + khtml 43 + kdelibs4support 44 + kpty 45 + libmtp 46 + libssh 47 + openexr 48 + openslp 49 + phonon 50 + qtsvg 51 + samba 52 + solid 53 + ]; 54 + meta = { 55 + license = with lib.licenses; [ gpl2 lgpl21 ]; 56 + maintainers = [ lib.maintainers.ttuegel ]; 57 + }; 58 + }
+1 -1
pkgs/development/libraries/kde-frameworks-5.17/default.nix
··· 74 74 kidletime = callPackage ./kidletime.nix {}; 75 75 kimageformats = callPackage ./kimageformats.nix {}; 76 76 kinit = callPackage ./kinit {}; 77 - kio = callPackage ./kio.nix {}; 77 + kio = callPackage ./kio {}; 78 78 kitemmodels = callPackage ./kitemmodels.nix {}; 79 79 kitemviews = callPackage ./kitemviews.nix {}; 80 80 kjobwidgets = callPackage ./kjobwidgets.nix {};
+3 -1
pkgs/development/libraries/kde-frameworks-5.17/kio.nix pkgs/development/libraries/kde-frameworks-5.17/kio/default.nix
··· 1 - { kdeFramework, lib, extra-cmake-modules, acl, karchive 1 + { kdeFramework, lib, copyPathsToStore 2 + , extra-cmake-modules, acl, karchive 2 3 , kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons 3 4 , kdbusaddons, kdoctools, ki18n, kiconthemes, kitemviews 4 5 , kjobwidgets, knotifications, kservice, ktextwidgets, kwallet ··· 8 9 9 10 kdeFramework { 10 11 name = "kio"; 12 + patches = copyPathsToStore (lib.readPathsFromFile ./. ./series); 11 13 nativeBuildInputs = [ extra-cmake-modules kdoctools makeQtWrapper ]; 12 14 buildInputs = [ 13 15 acl karchive kconfig kcoreaddons kdbusaddons kiconthemes
+28
pkgs/development/libraries/kde-frameworks-5.17/kio/samba-search-path.patch
··· 1 + Index: kio-5.17.0/src/core/ksambashare.cpp 2 + =================================================================== 3 + --- kio-5.17.0.orig/src/core/ksambashare.cpp 4 + +++ kio-5.17.0/src/core/ksambashare.cpp 5 + @@ -67,13 +67,18 @@ KSambaSharePrivate::~KSambaSharePrivate( 6 + 7 + bool KSambaSharePrivate::isSambaInstalled() 8 + { 9 + - if (QFile::exists(QStringLiteral("/usr/sbin/smbd")) 10 + - || QFile::exists(QStringLiteral("/usr/local/sbin/smbd"))) { 11 + - return true; 12 + + const QByteArray pathEnv = qgetenv("PATH"); 13 + + if (!pathEnv.isEmpty()) { 14 + + QLatin1Char pathSep(':'); 15 + + QStringList paths = QFile::decodeName(pathEnv).split(pathSep, QString::SkipEmptyParts); 16 + + for (QStringList::iterator it = paths.begin(); it != paths.end(); ++it) { 17 + + it->append("/smbd"); 18 + + if (QFile::exists(*it)) { 19 + + return true; 20 + + } 21 + + } 22 + } 23 + 24 + - //qDebug() << "Samba is not installed!"; 25 + - 26 + return false; 27 + } 28 +
+1
pkgs/development/libraries/kde-frameworks-5.17/kio/series
··· 1 + samba-search-path.patch
+19
pkgs/development/libraries/openslp/default.nix
··· 1 + { stdenv, fetchurl }: 2 + 3 + stdenv.mkDerivation { 4 + name = "openslp-2.0.0"; 5 + 6 + src = fetchurl { 7 + url = "mirror://sourceforge/openslp/2.0.0/2.0.0/openslp-2.0.0.tar.gz"; 8 + sha256 = "16splwmqp0400w56297fkipaq9vlbhv7hapap8z09gp5m2i3fhwj"; 9 + }; 10 + 11 + meta = with stdenv.lib; { 12 + homepage = "http://openslp.org/"; 13 + description = "An open-source implementation of the IETF Service Location Protocol"; 14 + maintainers = with maintainers; [ ttuegel ]; 15 + license = licenses.bsd3; 16 + platforms = platforms.all; 17 + }; 18 + 19 + }
+2
pkgs/top-level/all-packages.nix
··· 8003 8003 ffmpeg = ffmpeg_0; 8004 8004 }; 8005 8005 8006 + openslp = callPackage ../development/libraries/openslp {}; 8007 + 8006 8008 # 2.3 breaks some backward-compability 8007 8009 libressl = libressl_2_2; 8008 8010 libressl_2_2 = callPackage ../development/libraries/libressl/2.2.nix {