nixify
This commit is contained in:
parent
c028e21211
commit
6db0ac0470
7 changed files with 136 additions and 0 deletions
30
package.nix
Normal file
30
package.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
zola,
|
||||
lib,
|
||||
stdenv,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "elmskell-blog";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
nativeBuildInputs = [
|
||||
zola
|
||||
];
|
||||
configurePhase = ''
|
||||
zola check
|
||||
'';
|
||||
buildPhase = ''
|
||||
zola build
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/wwwroot
|
||||
cp ./public/* $out/wwwroot/ -r
|
||||
'';
|
||||
meta = {
|
||||
description = "Andromeda's blog, statically served via Zola";
|
||||
longDescription = "Andromeda's blog, statically served via Zola";
|
||||
homepage = "https://mtgmonkey.net";
|
||||
license = lib.licenses.wtfpl;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue