mirror of
https://github.com/youwen5/site.git
synced 2024-11-28 10:53:50 -08:00
22 lines
292 B
Nix
22 lines
292 B
Nix
|
{ pkgs ? import <nixpkgs> {} }:
|
||
|
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
name = "pnpm-project";
|
||
|
src = ./.;
|
||
|
|
||
|
buildInputs = [
|
||
|
pkgs.nodejs
|
||
|
pkgs.nodePackages.pnpm
|
||
|
];
|
||
|
|
||
|
buildPhase = ''
|
||
|
pnpm install
|
||
|
pnpm build
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out
|
||
|
cp -r dist/* $out/
|
||
|
'';
|
||
|
}
|