aboutsummaryrefslogtreecommitdiff
path: root/nix/site.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/site.nix')
-rw-r--r--nix/site.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nix/site.nix b/nix/site.nix
new file mode 100644
index 0000000..45209ff
--- /dev/null
+++ b/nix/site.nix
@@ -0,0 +1,23 @@
+{ pkgs }:
+
+pkgs.stdenvNoCC.mkDerivation {
+ pname = "kassouni-net";
+ version = "0.1.0";
+
+ # style/ sits outside the zola project because cgit shares its partials
+ src = pkgs.lib.fileset.toSource {
+ root = ../.;
+ fileset = pkgs.lib.fileset.unions [ ../site ../style ];
+ };
+
+ nativeBuildInputs = [ pkgs.zola ];
+
+ buildPhase = "zola --root site build";
+ installPhase = "cp -r site/public $out";
+
+ meta = {
+ description = "The personal website of Alex Kassouni";
+ license = pkgs.lib.licenses.mit;
+ platforms = pkgs.lib.platforms.all;
+ };
+}