mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
rofi-emoji: init at 2.1.2
This plugin is intended to be supplied to the `rofi` wrapper through an override: pkgs.rofi.override { plugins = [ rofi-emoji ]; }
This commit is contained in:
parent
570e3edc85
commit
7fce01fd6a
3 changed files with 96 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
From 695e7a441fc28b874e65917fe2c0059b5b8ca749 Mon Sep 17 00:00:00 2001
|
||||
From: Cole Helbling <cole.e.helbling@outlook.com>
|
||||
Date: Sat, 28 Mar 2020 23:46:03 -0700
|
||||
Subject: [PATCH] Patch plugindir to output
|
||||
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 75e476f..cb1ddf7 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -55,7 +55,7 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0 ])
|
||||
PKG_CHECK_MODULES([cairo], [cairo])
|
||||
PKG_CHECK_MODULES([rofi], [rofi])
|
||||
|
||||
-[rofi_PLUGIN_INSTALL_DIR]="`$PKG_CONFIG --variable=pluginsdir rofi`"
|
||||
+[rofi_PLUGIN_INSTALL_DIR]="`echo $out/lib/rofi`"
|
||||
AC_SUBST([rofi_PLUGIN_INSTALL_DIR])
|
||||
|
||||
LT_INIT([disable-static])
|
||||
--
|
||||
2.25.1
|
||||
|
69
pkgs/applications/misc/rofi-emoji/default.nix
Normal file
69
pkgs/applications/misc/rofi-emoji/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, substituteAll
|
||||
, makeWrapper
|
||||
|
||||
, autoreconfHook
|
||||
, pkgconfig
|
||||
|
||||
, cairo
|
||||
, glib
|
||||
, libnotify
|
||||
, rofi-unwrapped
|
||||
, wl-clipboard
|
||||
, xclip
|
||||
, xsel
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rofi-emoji";
|
||||
version = "2.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mange";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0knsvsdff2c7ww94120bq92735qrfriyd28mi0n72ccb2iikyi8b";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Look for plugin-related files in $out/lib/rofi
|
||||
./0001-Patch-plugindir-to-output.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs clipboard-adapter.sh
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
chmod +x $out/share/rofi-emoji/clipboard-adapter.sh
|
||||
wrapProgram $out/share/rofi-emoji/clipboard-adapter.sh \
|
||||
--prefix PATH ":" ${lib.makeBinPath [ libnotify wl-clipboard xclip xsel ]}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkgconfig
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
glib
|
||||
libnotify
|
||||
makeWrapper
|
||||
rofi-unwrapped
|
||||
wl-clipboard
|
||||
xclip
|
||||
xsel
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An emoji selector plugin for Rofi";
|
||||
homepage = "https://github.com/Mange/rofi-emoji";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cole-h ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -20675,6 +20675,8 @@ in
|
|||
|
||||
rofi-calc = callPackage ../applications/science/math/rofi-calc { };
|
||||
|
||||
rofi-emoji = callPackage ../applications/misc/rofi-emoji { };
|
||||
|
||||
ympd = callPackage ../applications/audio/ympd { };
|
||||
|
||||
nload = callPackage ../applications/networking/nload { };
|
||||
|
|
Loading…
Reference in a new issue