1 { stdenv, lib, fetchurl, fetchFromGitHub, jq, wofi, wtype, wl-clipboard }:
3 let emojiJSON = fetchurl {
4 url = "https://raw.githubusercontent.com/muan/emojilib/v3.0.6/dist/emoji-en-US.json";
5 sha256 = "sha256-wf7zsIEbX/diLwmVvnN2Goxh2V5D3Z6nbEMSb5pSGt0=";
8 stdenv.mkDerivation rec {
10 version = "unstable-2022-08-19";
12 src = fetchFromGitHub {
15 rev = "c5ecb4f0f164aedb046f52b5eacac889609c8522";
16 sha256 = "1wq276bhf9x24ds13b2dwa69cjnr207p6977hr4bsnczryg609rh";
19 nativeBuildInputs = [ jq ];
20 buildInputs = [ wofi wtype wl-clipboard ];
23 substituteInPlace build.sh \
24 --replace 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
39 cp wofi-emoji $out/bin
45 description = "Simple emoji selector for Wayland using wofi and wl-clipboard";
46 homepage = "https://github.com/dln/wofi-emoji";
47 license = licenses.mit;
48 maintainers = [ maintainers.ymarkus ];
49 platforms = platforms.all;