Files
clan-core/pkgs/icon-update/default.nix
2025-06-12 11:29:41 +01:00

21 lines
407 B
Nix

{ pkgs, deno }:
let
src = ./.;
in
pkgs.writeShellApplication {
name = "update";
runtimeInputs = [ deno ];
runtimeEnv = {
FIGMA_ICON_FILE_ID = "KJgLnsBI9nvUt44qKJXmVm";
FRAME_ID = "709-324";
};
text = ''
REPO_ROOT="$(git rev-parse --show-toplevel)"
OUT_DIR="$(realpath "$REPO_ROOT"/pkgs/clan-app/ui/src/icons)"
export OUT_DIR
deno run --allow-all ${src}/main.ts
'';
}