mirror of
https://gitlab.com/EternalWanderer/voidcruiser.nl
synced 2024-11-28 20:03:50 +01:00
Flake build
This commit is contained in:
parent
bb3007d53f
commit
51328b664d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
public
|
||||
voidcruiser.nl
|
||||
.direnv
|
||||
result
|
||||
|
|
27
flake.lock
27
flake.lock
|
@ -20,16 +20,16 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1696983906,
|
||||
"narHash": "sha256-L7GyeErguS7Pg4h8nK0wGlcUTbfUMDu+HMf1UcyP72k=",
|
||||
"lastModified": 1707347730,
|
||||
"narHash": "sha256-0etC/exQIaqC9vliKhc3eZE2Mm2wgLa0tj93ZF/egvM=",
|
||||
"owner": "NixOs",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "bd1cde45c77891214131cbbea5b1203e485a9d51",
|
||||
"rev": "6832d0d99649db3d65a0e15fa51471537b2c56a6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOs",
|
||||
"ref": "nixos-23.05",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -37,7 +37,8 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"themes": "themes"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
@ -54,6 +55,22 @@
|
|||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"themes": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1707594839,
|
||||
"narHash": "sha256-VeoBv8LfsTLGSoGpiNlC8gd79xd4InG+bAC6TkBCSHw=",
|
||||
"owner": "EternalWanderer",
|
||||
"repo": "themes",
|
||||
"rev": "53560c95d3bd33362e5552cb9efeaf8234724868",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"owner": "EternalWanderer",
|
||||
"repo": "themes",
|
||||
"type": "gitlab"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
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…
Reference in a new issue