mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 09:23:50 -08:00
21 lines
292 B
Nix
21 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/
|
|
'';
|
|
}
|