From 28bd8b27a9d51c4bdf9b05edb37aff85e8e99dd4 Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Sun, 18 Jan 2026 17:19:15 -0800 Subject: [PATCH] biwascheme: init at 0.8.3 --- pkgs/by-name/bi/biwascheme/package.nix | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/bi/biwascheme/package.nix diff --git a/pkgs/by-name/bi/biwascheme/package.nix b/pkgs/by-name/bi/biwascheme/package.nix new file mode 100644 index 000000000000..787db85cb3f7 --- /dev/null +++ b/pkgs/by-name/bi/biwascheme/package.nix @@ -0,0 +1,43 @@ +{ + buildNpmPackage, + fetchFromGitHub, + lib, + nix-update-script, + versionCheckHook, +}: + +buildNpmPackage (finalAttrs: { + pname = "biwascheme"; + version = "0.8.3"; + + src = fetchFromGitHub { + owner = "biwascheme"; + repo = "biwascheme"; + tag = "v${finalAttrs.version}"; + hash = "sha256-X3spl/myhcfmnJ1pN7RAoR0rc4kEM9s0DLtrN9RqyhU="; + }; + + npmDepsHash = "sha256-jVLCR6gIgK5OhH/KQPn3lYdTuNpMAEAQS1EtqIq8jTM="; + + postPatch = '' + substituteInPlace rollup.config.js \ + --replace-fail "git rev-parse HEAD" "echo ${finalAttrs.version}" + ''; + + env.PUPPETEER_SKIP_DOWNLOAD = true; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Scheme interpreter written in JavaScript"; + homepage = "https://github.com/biwascheme/biwascheme"; + changelog = "https://github.com/biwascheme/biwascheme/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ yiyu ]; + mainProgram = "biwas"; + }; +})