Update
This commit is contained in:
parent
83252b0da5
commit
b676e1bdbb
@ -1,8 +1,9 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
services.nginx.virtualHosts."home.anotherhadi.com" = {
|
services.nginx.virtualHosts."home.anotherhadi.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = pkgs.stdenv.mkDerivation {
|
root = pkgs.buildNpmPackage {
|
||||||
name = "homepage";
|
pname = "homepage";
|
||||||
|
version = "0.0.0";
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "anotherhadi";
|
owner = "anotherhadi";
|
||||||
@ -11,17 +12,17 @@
|
|||||||
hash = "sha256-Z2TZ56I6lRmYkLRnnMscvmSCzGt5q9yX90lGPebJpe8=";
|
hash = "sha256-Z2TZ56I6lRmYkLRnnMscvmSCzGt5q9yX90lGPebJpe8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pkgs; [ nodejs ];
|
npmDepsHash = "sha256-tuEfyePwlOy2/mOPdXbqJskO6IowvAP4DWg8xSZwbJw=";
|
||||||
|
|
||||||
buildPhase = ''
|
# The prepack script runs the build script, which we'd rather do in the build phase.
|
||||||
npm install --legacy-peer-deps
|
npmPackFlags = [ "--ignore-scripts" ];
|
||||||
npm run build
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
NODE_OPTIONS = "--openssl-legacy-provider";
|
||||||
mkdir -p $out
|
|
||||||
cp -r build/* $out
|
meta = {
|
||||||
'';
|
description = "test";
|
||||||
|
homepage = "https://text.com";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user