Add prototype nix builder for website
This commit is contained in:
parent
229975c893
commit
f58fadf388
3
blog/builder.sh
Normal file
3
blog/builder.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
source $stdenv/setup
|
||||
cp -r $src/* .
|
||||
hugo --baseUrl="https://danilafe.com" --destination=$out
|
16
blog/default.nix
Normal file
16
blog/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ stdenv, hugo, fetchgit }:
|
||||
|
||||
let
|
||||
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
|
||||
rev = "b04d82f0b3d949c1d4cd64246cc9c9558241f9ed";
|
||||
sha256 = "02w05ff3mb8x3x65822vzg8lil0q6w4rfkj098fa0lwv8wv6x4cy";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "blog-static";
|
||||
version = rev;
|
||||
src = fetchgit {
|
||||
inherit url rev sha256;
|
||||
};
|
||||
builder = ./builder.sh;
|
||||
buildInputs = [ hugo ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user