6b9eae2fa3
At some point I should document or write a script for how I package Elm projects with Nix to be deployed on my website. For now, I'm modeling everything after my previous success LearnPianoChords.
13 lines
300 B
Nix
13 lines
300 B
Nix
{ pkgs, briefcase, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "wpcarro.dev";
|
|
src = builtins.path { path = ./.; name = "website"; };
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp $src/index.html $out
|
|
|
|
mkdir -p $out/habits
|
|
cp ${briefcase.website.habit-screens} $out/habits/index.html
|
|
'';
|
|
}
|