28 lines
370 B
Nix
28 lines
370 B
Nix
|
{
|
||
|
pkgs
|
||
|
}:
|
||
|
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
name = "site";
|
||
|
version = "0.1.0";
|
||
|
|
||
|
src = ./.;
|
||
|
# src = pkgs.fetchgit {
|
||
|
# url = "git@einsof.org:/srv/git/repo/magackame/site.git";
|
||
|
# rev = "";
|
||
|
# sha256 = lib.fakeSha256;
|
||
|
# };
|
||
|
|
||
|
buildInputs = with pkgs; [
|
||
|
zola
|
||
|
];
|
||
|
|
||
|
buildPhase = ''
|
||
|
zola build
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
cp -r public $out
|
||
|
'';
|
||
|
}
|