This commit is contained in:
parent
2b2bb51d8b
commit
8797878c52
2 changed files with 19 additions and 1 deletions
2
make
2
make
|
|
@ -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
18
shell.nix
Normal 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
|
||||
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue