work in progress [might break]
All checks were successful
/ test (push) Successful in 5s

This commit is contained in:
Leon van Kammen 2024-01-01 13:01:15 +00:00
parent 2b2bb51d8b
commit 8797878c52
2 changed files with 19 additions and 1 deletions

2
make
View file

@ -28,7 +28,7 @@ dev(){
test -f cert.pem || openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
cd -
cd "$dir"
/tmp/redbean.com -c 0 -C /tmp/cert.pem -K /tmp/key.pem -D src
/tmp/redbean.com -c 0 -C /tmp/cert.pem -K /tmp/key.pem -D src "$@"
}
test -z $1 && install

18
shell.nix Normal file
View file

@ -0,0 +1,18 @@
#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
cosmopolitan
];
}