From 42449228f00d688dbbc7b1c30900257b43780a2f Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Fri, 10 Mar 2023 08:57:36 +0900 Subject: Make it easy to build project on Nix package manager / NixOS --- build.sh | 2 +- shell.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 shell.nix 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 { } }: +pkgs.mkShell { + nativeBuildInputs = [ pkgs.nodejs ]; +} -- cgit v1.2.3