diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 46b81388b25a..0752f5fead2d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -29936,6 +29936,12 @@ name = "Edward"; keys = [ { fingerprint = "0BC2F3C6AE5D73DAE870CB0E8AE4DE0EFB6CC443"; } ]; }; + WiredMic = { + name = "Rasmus Enevoldsen"; + github = "WiredMic"; + githubId = 111731519; + email = "rasmus@enev.dk"; + }; wirew0rm = { email = "alex@wirew0rm.de"; github = "wirew0rm"; diff --git a/pkgs/by-name/sp/spellchecker-cli/package.nix b/pkgs/by-name/sp/spellchecker-cli/package.nix new file mode 100644 index 000000000000..d0ca76d7b009 --- /dev/null +++ b/pkgs/by-name/sp/spellchecker-cli/package.nix @@ -0,0 +1,49 @@ +{ + stdenv, + lib, + fetchFromGitHub, + fetchYarnDeps, + yarnConfigHook, + yarnBuildHook, + yarnInstallHook, + nodejs, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "spellchecker-cli"; + version = "7.0.3"; + + strictDeps = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "tbroadley"; + repo = "spellchecker-cli"; + tag = "v${finalAttrs.version}"; + hash = "sha256-4rKUxXsZKsRDhMV0HL39yQyVNI0negCg97KsI+77oI4="; + }; + + yarnOfflineCache = fetchYarnDeps { + yarnLock = finalAttrs.src + "/yarn.lock"; + hash = "sha256-GWIjk8eV2yYwsAfe7IY2mjO/dk9mb4vXEOvp68y4eMk="; + }; + + nativeBuildInputs = [ + yarnConfigHook + yarnBuildHook + yarnInstallHook + nodejs + ]; + + yarnBuildScript = "prepack"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "A command-line tool for spellchecking files"; + homepage = "https://www.npmjs.com/package/spellchecker-cli"; + mainProgram = "spellchecker"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ WiredMic ]; + }; +})