mirror of
https://github.com/thiloho/aurora.git
synced 2025-12-23 15:53:37 +01:00
Add nix build script to generate static files
This commit is contained in:
16
flake.nix
16
flake.nix
@@ -20,11 +20,19 @@
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs # Node.js, plus npm, npx, and corepack
|
||||
packages = forAllSystems ({ pkgs }: {
|
||||
default = pkgs.buildNpmPackage {
|
||||
name = "build-aurora-blog";
|
||||
buildInputs = with pkgs; [
|
||||
nodejs_18
|
||||
];
|
||||
src = ./.;
|
||||
npmDepsHash = "sha256-K30UsMZ508XT1x/1eXY/xg7dfhLm55pdi9vOdDQHtWg=";
|
||||
npmBuild = "npm run build";
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r dist/* $out
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user