tvl-depot/website/default.nix
William Carroll 6b9eae2fa3 Productionize habit-screens
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.
2020-12-13 13:33:49 +00:00

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
'';
}