Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SnO2WMaN/deno2nix
Integrate Deno with Nix
https://github.com/SnO2WMaN/deno2nix
deno nix
Last synced: 2 months ago
JSON representation
Integrate Deno with Nix
- Host: GitHub
- URL: https://github.com/SnO2WMaN/deno2nix
- Owner: SnO2WMaN
- License: mit
- Created: 2022-06-19T01:10:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T03:54:48.000Z (about 1 year ago)
- Last Synced: 2024-04-16T04:38:57.517Z (10 months ago)
- Topics: deno, nix
- Language: Nix
- Homepage:
- Size: 35.2 KB
- Stars: 53
- Watchers: 5
- Forks: 20
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno2nix
[Nix](https://nixos.org/) support for [Deno](https://deno.land)
## Usage
There is a [sample project](/examples/simple).
```nix
{
inputs.deno2nix.url = "github:SnO2WMaN/deno2nix";
inputs.devshell.url = "github:numtide/devshell";
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (system: let
inherit (pkgs) deno2nix;
pkgs = import nixpkgs {
inherit system;
overlays = with inputs; [
devshell.overlay
deno2nix.overlays.default
];
};
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;
};
});
};
}
```## 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)