deno2.nix/nix/internal/artifact-path.nix
SnO₂WMaN 21efd7ac82
feat: Update for deno2nix v2 (#21)
* move simple script to `examples/simple`

* rm vscode settings.json

* example npm

* wip

* refactoring

* Update mkExecutable

* rm custom formatter  from vscode extensions

* Add .gitignore

* Update flake.nix

* bundled/executable wip

* Update flake

* importMap

* bundled wrapper

* somerefactoring

* no more overlay(default)

* add todo

* Update README.md
2022-12-14 13:00:56 +09:00

15 lines
320 B
Nix

{
lib,
deno2nix,
...
}: let
inherit (builtins) hashString;
inherit (deno2nix.internal) urlPart;
in
# input: https://deno.land/std@0.118.0/fmt/colors.ts
#
# output: https/deno.land/<sha256 "/std@0.118.0/fmt/colors.ts">
url: let
up = urlPart url;
in "${up 0}/${up 1}/${hashString "sha256" (up 2)}"