mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-14 08:18:00 +00:00
Create default.nix
This commit is contained in:
1 parent
33306ea2d1
commit
cc454d4957
1 file changed
+12
+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