about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--boilerplate/typescript/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/boilerplate/typescript/default.nix b/boilerplate/typescript/default.nix
index 827056a913be..b7aaf0a57763 100644
--- a/boilerplate/typescript/default.nix
+++ b/boilerplate/typescript/default.nix
@@ -1,7 +1,7 @@
-let
-  pkgs = import <nixpkgs> {};
-in pkgs.stdenv.mkDerivation {
-  name = "ideal-website";
+{ pkgs, ... }:
+
+pkgs.stdenv.mkDerivation {
+  name = "typescript";
   srcs = ./.;
   buildInputs = with pkgs; [
     nodejs
@@ -11,7 +11,7 @@ in pkgs.stdenv.mkDerivation {
   # parcel.js needs number of CPUs
   PARCEL_WORKERS = "1";
   buildPhase = ''
-    npx parcel build index.html
+    npx parcel build $src/index.html
   '';
   installPhase = ''
     mv dist $out