summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-03-12 20:31:26 +0900
committerGitHub <noreply@github.com>2023-03-12 20:31:26 +0900
commit75fd35e2ab183278253248fd06e9d870ce21777a (patch)
tree0dbd61ecb29f713ab660c3fd2cbcd298e3af010f
parentf73611de12c0fb6ccf9e361e48abd7de6e63b4e8 (diff)
parent42449228f00d688dbbc7b1c30900257b43780a2f (diff)
Merge pull request #88 from themoeway/nix-support
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 ];
+}