mirror of
https://github.com/tiennm99/miti99.git
synced 2026-09-16 04:19:12 +00:00
Create default.nix
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "hugo-build";
|
||||
buildInputs = [ pkgs.hugo_extended ];
|
||||
buildPhase = ''
|
||||
mkdir -p /app/public
|
||||
hugo --minify --destination /app/public
|
||||
'';
|
||||
installPhase = ''
|
||||
cp -r /app/public/* $out
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user