https://github.com/replit/nixpkgs-replit
https://github.com/replit/nixpkgs-replit
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/replit/nixpkgs-replit
- Owner: replit
- License: mit
- Created: 2021-04-13T22:15:46.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-11T08:08:54.000Z (6 months ago)
- Last Synced: 2025-08-11T10:19:24.299Z (6 months ago)
- Language: Nix
- Size: 5.31 MB
- Stars: 27
- Watchers: 41
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# nixpkgs-replit
`nixpkgs-replit` is Replit's nixpkgs overlay. This overlay provides several
[channels](https://nixos.wiki/wiki/Nix_channels) that track the upstream nix
channels of the same name.
## Using the overlay
You can use this overlay by creating any new repl on
[Replit](https://replit.com/new/nix). If you would like to use it locally, you
can add it as a channel.
```
nix-channel --add https://storage.googleapis.com/replit-nixpkgs/nixpkgs-21.11.tar.gz replit-nixpkgs
nix-channel --update
nix-shell -E "import {}" -A replitPackages.replbox
```
## Building the overlay
You can build packages out of the overlay with the `nix-build` command. The
resulting package will be placed in the `result` directory for testing.
```
# Build the replbox common interpreter frontend
nix-build -A replitPackages.replbox
```
You can also fork [this repl](https://replit.com/@ZachAtReplit/overlay), which
contains the overlay repository, and allows testing packages from the overlay
directly in `replit.nix`.
## Building the overlay for a particular channel
You can build a package for a particular channel like this:
```
nix-build --argstr channelName nixpkgs-22.11 -A nodePackages.typescript-language-server
```
## Updating the overlay base
You can update the pinned base channels by running `./update.sh`. The update
script will use niv to update the pinned channels to the latest revisions
according to nixpkgs.
## Adding a new base channel
You can add additional channels by running `./add.sh `. For example
`./add.sh 22.05` to add the `release-22.05` branch.