13 emojiJSON = fetchurl {
14 url = "https://raw.githubusercontent.com/muan/emojilib/v3.0.11/dist/emoji-en-US.json";
15 hash = "sha256-WHqCSNgDzc6ZASdVrwPvsU4MtBcYLKDp2D2Hykrq1sI=";
18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 hash = "sha256-wLZK7RcDxxlYuu27WNj+SoRoBiCqk9whp4Fyg0SOoPA=";
29 nativeBuildInputs = [ jq ];
37 substituteInPlace build.sh \
38 --replace 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
39 substituteInPlace wofi-emoji \
40 --replace 'wofi' '${wofi}/bin/wofi' \
41 --replace 'wtype' '${wtype}/bin/wtype' \
42 --replace 'wl-copy' '${wl-clipboard}/bin/wl-copy'
57 cp wofi-emoji $out/bin
63 description = "Simple emoji selector for Wayland using wofi and wl-clipboard";
64 homepage = "https://github.com/Zeioth/wofi-emoji";
65 license = lib.licenses.mit;
66 maintainers = with lib.maintainers; [ johnrtitor ymarkus ];
67 platforms = lib.platforms.all;
68 mainProgram = "wofi-emoji";