wofi-emoji: 1.0.0 -> 1.1.0

This commit is contained in:
emaryn 2025-03-13 04:54:41 +08:00 committed by Masum Reza
parent d7041843af
commit db5bf85d70

View File

@ -11,22 +11,23 @@
let
emojiJSON = fetchurl {
url = "https://raw.githubusercontent.com/muan/emojilib/v3.0.11/dist/emoji-en-US.json";
hash = "sha256-WHqCSNgDzc6ZASdVrwPvsU4MtBcYLKDp2D2Hykrq1sI=";
url = "https://raw.githubusercontent.com/muan/emojilib/v4.0.0/dist/emoji-en-US.json";
hash = "sha256-IoU9ZPCqvSPX4DmfC+r5MiglhFc41XMRrbJRL9ZNrvs=";
};
in
stdenv.mkDerivation rec {
pname = "wofi-emoji";
version = "1.0.0";
version = "1.1.0";
src = fetchFromGitHub {
owner = "Zeioth";
repo = "wofi-emoji";
rev = "v${version}";
hash = "sha256-wLZK7RcDxxlYuu27WNj+SoRoBiCqk9whp4Fyg0SOoPA=";
tag = "v${version}";
hash = "sha256-NHiAAPRbIz0sC5yh9DTDmIU3zDBFIlUsbpW4HAPr5C8=";
};
nativeBuildInputs = [ jq ];
buildInputs = [
wofi
wtype
@ -35,11 +36,11 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace build.sh \
--replace 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
--replace-fail 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
substituteInPlace wofi-emoji \
--replace 'wofi' '${wofi}/bin/wofi' \
--replace 'wtype' '${wtype}/bin/wtype' \
--replace 'wl-copy' '${wl-clipboard}/bin/wl-copy'
--replace-fail 'wofi' '${wofi}/bin/wofi' \
--replace-fail 'wtype' '${wtype}/bin/wtype' \
--replace-fail 'wl-copy' '${wl-clipboard}/bin/wl-copy'
'';
buildPhase = ''