From 9e566f5d5084196b225a6faf4cbb6bf9c6f55aae Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sat, 6 Apr 2024 16:03:44 +0200 Subject: [PATCH] Let's try adding install phase steps to phanpy --- pkgs/phanpy/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/phanpy/default.nix b/pkgs/phanpy/default.nix index 1c63541..9b5fd09 100644 --- a/pkgs/phanpy/default.nix +++ b/pkgs/phanpy/default.nix @@ -25,6 +25,12 @@ buildNpmPackage rec { # The prepack script runs the build script, which we'd rather do in the build phase. npmPackFlags = ["--ignore-scripts"]; + installPhase = '' + mkdir $out + npm run build + cp dist/index.html $out + ''; + meta = with lib; { description = "Minimalistic opinionated Mastodon web client."; homepage = "https://phanpy.social/";