27 lines
648 B
Nix
27 lines
648 B
Nix
|
|
#let
|
||
|
|
# pkgs = import (builtins.fetchGit {
|
||
|
|
# name = "nixos-23.05";
|
||
|
|
# url = "https://github.com/nixos/nixpkgs/";
|
||
|
|
# ref = "refs/heads/nixos-unstable";
|
||
|
|
# rev = "ef99fa5c5ed624460217c31ac4271cfb5cb2502c";
|
||
|
|
# }) {};
|
||
|
|
{ pkgs ? import <nixpkgs> {} }:
|
||
|
|
|
||
|
|
pkgs.mkShell {
|
||
|
|
# nativeBuildInputs is usually what you want -- tools you need to run
|
||
|
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||
|
|
|
||
|
|
nodejs_20
|
||
|
|
|
||
|
|
];
|
||
|
|
|
||
|
|
shellHook = ''
|
||
|
|
|
||
|
|
# install bun
|
||
|
|
alias bun="steam-run ~/.bun/bin/bun"
|
||
|
|
test -f ~/.bun/bin/bun || curl -fsSL https://bun.com/install | bash -s "bun-v1.2.22"
|
||
|
|
|
||
|
|
export NIX_SHELL_DEV=1
|
||
|
|
'';
|
||
|
|
}
|