mirror of
https://gitlab.com/EternalWanderer/voidcruiser.nl
synced 2025-06-08 06:04:23 +02:00
Flake build
This commit is contained in:
parent
bb3007d53f
commit
51328b664d
3 changed files with 32 additions and 10 deletions
14
flake.nix
14
flake.nix
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue