mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-02 06:53:33 +00:00
pkgs: add rofi-calc-wayland and rofi-emoji-wayland
Wayland patched versions of rofi-calc and rofi-emoji
This commit is contained in:
parent
6943a4f089
commit
612534e7cf
7 changed files with 190 additions and 10 deletions
|
@ -27,6 +27,8 @@
|
|||
ani-cli = mkPackage ./ani-cli;
|
||||
rat = mkPackage ./rat;
|
||||
mov-cli = mkPackage ./mov-cli;
|
||||
rofi-calc-wayland = mkPackage ./rofi-calc-wayland;
|
||||
rofi-emoji-wayland = mkPackage ./rofi-emoji-wayland;
|
||||
|
||||
# static packages
|
||||
# need manual intervention with each update
|
||||
|
|
56
pkgs/rofi-calc-wayland/default.nix
Normal file
56
pkgs/rofi-calc-wayland/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
rofi-wayland-unwrapped,
|
||||
libqalculate,
|
||||
glib,
|
||||
cairo,
|
||||
gobject-introspection,
|
||||
wrapGAppsHook,
|
||||
pins,
|
||||
...
|
||||
}: let
|
||||
pin = pins.rofi-calc;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "rofi-calc-wayland";
|
||||
inherit (pin) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit (pin.repository) owner repo;
|
||||
sha256 = pin.hash;
|
||||
rev = pin.revision;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
rofi-wayland-unwrapped
|
||||
libqalculate
|
||||
glib
|
||||
cairo
|
||||
];
|
||||
|
||||
patches = [
|
||||
../../patches/0002-patch-plugin-dir.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed "s|qalc_binary = \"qalc\"|qalc_binary = \"${libqalculate}/bin/qalc\"|" -i src/calc.c
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Do live calculations in rofi!";
|
||||
homepage = "https://github.com/svenstaro/rofi-calc";
|
||||
license = licenses.mit;
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
65
pkgs/rofi-emoji-wayland/default.nix
Normal file
65
pkgs/rofi-emoji-wayland/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
cairo,
|
||||
glib,
|
||||
libnotify,
|
||||
rofi-wayland-unwrapped,
|
||||
wl-clipboard,
|
||||
wtype,
|
||||
pins,
|
||||
...
|
||||
}: let
|
||||
pin = pins.rofi-emoji;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "rofi-emoji-wayland";
|
||||
inherit (pin) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit (pin.repository) owner repo;
|
||||
sha256 = pin.hash;
|
||||
rev = pin.revision;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
glib
|
||||
libnotify
|
||||
rofi-wayland-unwrapped
|
||||
wl-clipboard
|
||||
wtype
|
||||
];
|
||||
|
||||
patches = [
|
||||
../../patches/0002-patch-plugin-dir.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 wtype]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An emoji selector plugin for Rofi";
|
||||
homepage = "https://github.com/Mange/rofi-emoji";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [NotAShelf];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue