deno2.nix/README.md

54 lines
1.1 KiB
Markdown
Raw Normal View History

2022-06-19 01:42:12 +00:00
# deno2nix
[Nix](https://nixos.org/) support for [Deno](https://deno.land)
## Usage
There is a [sample project](/examples/simple).
2022-06-19 01:42:12 +00:00
```nix
{
2022-06-19 01:46:24 +00:00
inputs.deno2nix.url = "github:SnO2WMaN/deno2nix";
2022-06-19 01:42:12 +00:00
inputs.devshell.url = "github:numtide/devshell";
2022-06-19 01:42:12 +00:00
outputs = {
self,
nixpkgs,
2022-06-19 01:42:12 +00:00
flake-utils,
...
} @ inputs:
2022-06-19 01:42:12 +00:00
flake-utils.lib.eachDefaultSystem (system: let
inherit (pkgs) deno2nix;
2022-06-19 01:42:12 +00:00
pkgs = import nixpkgs {
inherit system;
overlays = with inputs; [
2022-06-19 01:42:12 +00:00
devshell.overlay
deno2nix.overlays.default
2022-06-19 01:42:12 +00:00
];
};
in {
packages.executable = deno2nix.mkExecutable {
pname = "simple-executable";
version = "0.1.0";
src = ./.;
bin = "simple";
entrypoint = "./mod.ts";
lockfile = "./deno.lock";
config = "./deno.jsonc";
allow = {
all = true;
};
});
2022-06-19 01:42:12 +00:00
}
```
## Thanks
- [esselius/nix-deno](https://github.com/esselius/nix-deno)
- Original
- [brecert/nix-deno](https://github.com/brecert/nix-deno)
- Fork of [esselius/nix-deno](https://github.com/esselius/nix-deno)