Try and build phanpy with path commands in installphase

This commit is contained in:
Lillian Violet 2024-04-08 16:51:07 +02:00
parent 2e6d9aec60
commit 797a05a51c

View file

@ -7,12 +7,6 @@ buildNpmPackage rec {
pname = "phanpy";
version = "2024.04.04.65d51b0";
shellHook = ''
export PHANPY_DEFAULT_INSTANCE="social.gladtherescake.eu"
export PHANPY_CLIENT_NAME="Phanpy on gladtherescake.eu"
export PHANPY_WEBSITE="phanpy.gladtherescake.eu"
'';
src = fetchFromGitHub {
owner = "cheeaun";
repo = pname;
@ -26,6 +20,9 @@ buildNpmPackage rec {
npmPackFlags = ["--ignore-scripts"];
installPhase = ''
export PHANPY_DEFAULT_INSTANCE="social.gladtherescake.eu"
export PHANPY_CLIENT_NAME="Phanpy on gladtherescake.eu"
export PHANPY_WEBSITE="phanpy.gladtherescake.eu"
mkdir $out
npm run build
cp -r dist/* $out