Skip to content

Commit

Permalink
Copy npm build directory to output path
Browse files Browse the repository at this point in the history
  • Loading branch information
Brecht Serckx committed Jan 26, 2024
1 parent a08f56b commit 3abbf45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions recycle-ics-ui/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{ lib, buildNpmPackage, fetchFromGitHub, stdenv }:

# See https://zero-to-nix.com/start/nix-build
buildNpmPackage rec {
pname = "recycle-ics-ui";
version = "0.1.0";

src = ./.;
npmDepsHash = "sha256-18GoVdpMZrYvOdtTrPhSLhPEOpfMOBl40Wj8ddbIwts=";

installPhase = ''
mkdir -p $out
npm run build
cp -r build/* $out
'';
}
3 changes: 2 additions & 1 deletion recycle-ics/recycle-ics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# shellcheck disable=SC3030,SC3024,SC3054

CMD=(cabal run exe:recycle-ics --)
# CMD=(docker run -p "$PORT:$PORT" recycle:latest)
# CMD=(docker run -p "$RECYCLE_ICS_PORT:$RECYCLE_ICS_PORT" recycle:latest)
# CMD=($(nix-build -A recycle-ics)/bin/recycle-ics)

CMD+=(--secret "$RECYCLE_ICS_SECRET")

Expand Down

0 comments on commit 3abbf45

Please sign in to comment.