https://github.com/DrSensor/rescript.nix
nix devshell for using rescript compiler without JS runtime
https://github.com/DrSensor/rescript.nix
Last synced: over 1 year ago
JSON representation
nix devshell for using rescript compiler without JS runtime
- Host: GitHub
- URL: https://github.com/DrSensor/rescript.nix
- Owner: DrSensor
- Created: 2023-12-20T07:19:33.000Z (over 2 years ago)
- Default Branch: trunk
- Last Pushed: 2024-11-16T22:01:12.000Z (over 1 year ago)
- Last Synced: 2025-03-02T04:29:17.360Z (over 1 year ago)
- Language: Nix
- Homepage:
- Size: 20.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReScript with nix
**Status**: Works on simple example
> [!IMPORTANT]
> no JS runtime is involved or harmed in any way in this experiment

## Usage
```sh
nix develop github:DrSensor/rescript.nix
```
## Dev
Clone the repo first (don't do human cloning because the code written here is not designed for that)
```sh
git clone https://github.com/DrSensor/rescript.nix.git
cd rescript.nix/
```
Activate nix devshell (you can also use `nix develop`)
```sh
direnv allow
```
Let's test out by compiling the simple example
```sh
cd examples/simple/
rescript
```