diff options
author | hqurve <hqurve@outlook.com> | 2021-07-18 21:53:02 -0400 |
---|---|---|
committer | hqurve <hqurve@outlook.com> | 2021-07-20 12:28:30 -0400 |
commit | 4ac8c881c37875f4e5099b1a65fef03c2e0b9389 (patch) | |
tree | 467dfb79eca9a5d05f2446034816697b3900b0d6 /pkgs/desktops | |
parent | 204f7e1725f697b76eb4591016798ee5987f48ea (diff) | |
download | nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar.gz nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar.bz2 nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar.lz nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar.xz nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.tar.zst nixlib-4ac8c881c37875f4e5099b1a65fef03c2e0b9389.zip |
krunner-symbols: init at 1.1.0
Diffstat (limited to 'pkgs/desktops')
-rw-r--r-- | pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix | 40 | ||||
-rw-r--r-- | pkgs/desktops/plasma-5/default.nix | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix b/pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix new file mode 100644 index 000000000000..7a0b61622570 --- /dev/null +++ b/pkgs/desktops/plasma-5/3rdparty/addons/krunner-symbols.nix @@ -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; + }; +} diff --git a/pkgs/desktops/plasma-5/default.nix b/pkgs/desktops/plasma-5/default.nix index 4b41e5ad9d5f..9252aa7b39ba 100644 --- a/pkgs/desktops/plasma-5/default.nix +++ b/pkgs/desktops/plasma-5/default.nix @@ -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 { }; }; |