voidcruiser.nl/flake.nix

37 lines
817 B
Nix
Raw Permalink Normal View History

2024-02-10 21:19:45 +01:00
{ description = "Voidcruiser website";
2024-02-03 15:00:06 +01:00
inputs = {
2024-09-27 10:18:01 +02:00
nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
2024-02-10 21:19:45 +01:00
themes = {
url = "gitlab:EternalWanderer/themes";
flake = false;
};
2024-02-03 15:00:06 +01:00
};
2024-02-10 21:19:45 +01:00
outputs = { self, nixpkgs, flake-utils, themes }:
2024-02-03 15:00:06 +01:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
packages = {
default = pkgs.stdenvNoCC.mkDerivation rec {
pname = "voidcruiser";
version = "1.3";
2024-02-10 21:19:45 +01:00
src = ./src;
2024-02-03 15:00:06 +01:00
buildInputs = [ pkgs.hugo ];
buildPhase = ''
2024-02-10 21:19:45 +01:00
hugo --themesDir="${themes.outPath}"
2024-02-03 15:00:06 +01:00
'';
installPhase = ''
mkdir -p $out/share/
cp -r public $out/share/${pname}
'';
};
};
});
}