From 0c93b2c58af4c31ed1f09450c41277307ddeef5b Mon Sep 17 00:00:00 2001 From: Martin Irungu <68087402+wirungu@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:18:36 +0200 Subject: [PATCH] packages: add write-emojivoto-demo --- packages/scripts.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/scripts.nix b/packages/scripts.nix index e217369cc9..93dc7340b1 100644 --- a/packages/scripts.nix +++ b/packages/scripts.nix @@ -208,6 +208,20 @@ with pkgs; ''; }; + write-emojivoto-demo = writeShellApplication { + name = "write-emojivoto-demo"; + runtimeInputs = [ + contrast + kypatch + ]; + text = '' + imageReplacements=$1 + destinationFile=$2 + resourcegen --image-replacements="$imageReplacements" emojivoto "$destinationFile" + nix run .#kypatch namespace -- "$destinationFile" --replace edg-default default + ''; + }; + fetch-latest-contrast = writeShellApplication { name = "fetch-latest-contrast"; runtimeInputs = [