Merge pull request #130588 from hqurve/krunner-symbols

This commit is contained in:
Sandro 2021-07-22 09:45:48 +02:00 committed by GitHub
commit 6337261453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

View File

@ -4355,6 +4355,12 @@
github = "HolgerPeters";
githubId = 4097049;
};
hqurve = {
email = "hqurve@outlook.com";
github = "hqurve";
githubId = 53281855;
name = "hqurve";
};
hrdinka = {
email = "c.nix@hrdinka.at";
github = "hrdinka";

View File

@ -0,0 +1,40 @@
{ lib, stdenv
, cmake, fetchFromGitHub, extra-cmake-modules
, qtbase, wrapQtAppsHook, ki18n, kdelibs4support, krunner
}:
stdenv.mkDerivation rec {
pname = "krunner-symbols";
version = "1.1.0";
src = fetchFromGitHub {
owner = "domschrei";
repo = "krunner-symbols";
rev = version;
sha256 = "sha256-YsoZdPTWpk3/YERwerrVEcaf2IfGVJwpq32onhP8Exo=";
};
buildInputs = [ qtbase ki18n kdelibs4support krunner ];
nativeBuildInputs = [ cmake wrapQtAppsHook extra-cmake-modules ];
postPatch = ''
# symbols.cpp hardcodes the location of configuration files
substituteInPlace symbols.cpp \
--replace "/usr/share/config/krunner-symbol" "$out/share/config/krunner-symbol"
# change cmake flag names to output using the correct qt-plugin prefix and kservice location
substituteInPlace CMakeLists.txt \
--replace "LOCATION_PLUGIN" "KDE_INSTALL_PLUGINDIR" \
--replace "LOCATION_DESKTOP" "KDE_INSTALL_KSERVICES5DIR"
'';
cmakeFlags = [ "-DLOCATION_CONFIG=share/config" ];
meta = with lib; {
description = "A little krunner plugin (Plasma 5) to retrieve unicode symbols, or any other string, based on a corresponding keyword";
homepage = "https://github.com/domschrei/krunner-symbols";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hqurve ];
platforms = platforms.linux;
};
}

View File

@ -158,6 +158,7 @@ let
kwin-dynamic-workspaces = callPackage ./3rdparty/kwin/scripts/dynamic-workspaces.nix { };
kwin-tiling = callPackage ./3rdparty/kwin/scripts/tiling.nix { };
krohnkite = callPackage ./3rdparty/kwin/scripts/krohnkite.nix { };
krunner-symbols = callPackage ./3rdparty/addons/krunner-symbols.nix { };
parachute = callPackage ./3rdparty/kwin/scripts/parachute.nix { };
};

View File

@ -1135,6 +1135,7 @@ mapAliases ({
kwin-dynamic-workspaces
kwin-tiling
krohnkite
krunner-symbols
;
inherit (libsForQt5)
sddm