From cd06990fe3cad2d3098bc1964f2b7185e4491cfa Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 25 Mar 2020 16:47:30 +0000 Subject: [PATCH] Debug typescript/default.nix TL;DR - Change derivation name - Point to $src/index.html instead of non-existent index.html - Prefer defining pkgs as a function argument --- boilerplate/typescript/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boilerplate/typescript/default.nix b/boilerplate/typescript/default.nix index 827056a91..b7aaf0a57 100644 --- a/boilerplate/typescript/default.nix +++ b/boilerplate/typescript/default.nix @@ -1,7 +1,7 @@ -let - pkgs = import {}; -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