website/nix/packages/website/default.nix
marshmallow 610fa12723 chore: prettier sweep
apply prettier across entire codebase
2024-05-07 11:12:16 +10:00

25 lines
440 B
Nix

{
lib,
writeScriptBin,
buildNpmPackage,
...
}: let
json = lib.importJSON (lib.snowfall.fs.get-file "package.json");
in
buildNpmPackage {
pname = "aux-website";
inherit (json) version;
src = lib.snowfall.fs.get-file "/";
npmDepsHash = "sha256-aFyw9ySIGQqcJZFuVrFrn7Ntm8nzjTZYnZ5X9d/TiiA=";
npmFlags = ["--ignore-scripts"];
installPhase = ''
mkdir -p $out
cp -r ./dist/* $out/
'';
}