diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-03-10 08:57:36 +0900 |
---|---|---|
committer | Darius Jahandarie <djahandarie@gmail.com> | 2023-03-12 20:21:30 +0900 |
commit | 42449228f00d688dbbc7b1c30900257b43780a2f (patch) | |
tree | 0dbd61ecb29f713ab660c3fd2cbcd298e3af010f | |
parent | f73611de12c0fb6ccf9e361e48abd7de6e63b4e8 (diff) |
Make it easy to build project on Nix package manager / NixOS
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | shell.nix | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,2 +1,2 @@ -#!/bin/bash +#!/bin/sh npm run-script build -- "$@" diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..9001ef77 --- /dev/null +++ b/shell.nix @@ -0,0 +1,4 @@ +{ pkgs ? import <nixpkgs> { } }: +pkgs.mkShell { + nativeBuildInputs = [ pkgs.nodejs ]; +} |