aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-03-10 08:57:36 +0900
committerDarius Jahandarie <djahandarie@gmail.com>2023-03-12 20:21:30 +0900
commit42449228f00d688dbbc7b1c30900257b43780a2f (patch)
tree0dbd61ecb29f713ab660c3fd2cbcd298e3af010f
parentf73611de12c0fb6ccf9e361e48abd7de6e63b4e8 (diff)
Make it easy to build project on Nix package manager / NixOS
-rwxr-xr-xbuild.sh2
-rw-r--r--shell.nix4
2 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 0d3c408d..d61c37f4 100755
--- a/build.sh
+++ b/build.sh
@@ -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 ];
+}