Skip to content

Commit

Permalink
make a derivation to build the site
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Oct 25, 2020
1 parent 4201c52 commit 1430e89
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
/public
/result
18 changes: 18 additions & 0 deletions default.nix
@@ -0,0 +1,18 @@
{ ... }:
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
in nixpkgs.stdenv.mkDerivation {
name = "bytes.zone";
src = ./.;

buildInputs = [ nixpkgs.zola ];
buildPhase = ''
zola build
'';

installPhase = ''
mkdir -p $out/share
mv public $out/share/bytes.zone
'';
}

0 comments on commit 1430e89

Please sign in to comment.