Flake build

This commit is contained in:
Nox Sluijtman 2024-02-10 21:19:45 +01:00
parent bb3007d53f
commit 51328b664d
3 changed files with 32 additions and 10 deletions

View file

@ -1,9 +1,13 @@
{ description = "Website flake";
{ description = "Voidcruiser website";
inputs = {
nixpkgs.url = "github:NixOs/nixpkgs/nixos-23.05";
nixpkgs.url = "github:NixOs/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
themes = {
url = "gitlab:EternalWanderer/themes";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, themes }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
@ -13,12 +17,12 @@
pname = "voidcruiser";
version = "1.3";
src = ./.;
src = ./src;
buildInputs = [ pkgs.hugo ];
buildPhase = ''
hugo
hugo --themesDir="${themes.outPath}"
'';
installPhase = ''