mirror of
https://gitlab.com/EternalWanderer/voidcruiser.nl
synced 2025-06-08 06:04:23 +02:00
Flake and nixvim
This commit is contained in:
parent
27ac5fa2a0
commit
ee94eadb12
3 changed files with 134 additions and 0 deletions
36
flake.nix
Normal file
36
flake.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ description = "Website flake";
|
||||
inputs = {
|
||||
nixpkgs.url = github:NixOs/nixpkgs/nixos-23.05;
|
||||
flake-utils.url = github:numtide/flake-utils;
|
||||
};
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
packages = {
|
||||
default = pkgs.stdenvNoCC.mkDerivation rec {
|
||||
|
||||
pname = "voidcruiser";
|
||||
version = "1.3";
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ pkgs.hugo ];
|
||||
|
||||
buildPhase = ''
|
||||
hugo
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/
|
||||
cp -r public $out/share/${pname}
|
||||
'';
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = [ pkgs.hugo ];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue