Compare commits

...

2 commits

Author SHA1 Message Date
Martin Wurm f85f2edce5 initialise stack theme setup 2024-02-14 13:58:08 +01:00
Martin Wurm 9a6222ce55 update gitignore 2024-02-14 13:57:46 +01:00
5 changed files with 62 additions and 1862 deletions

View file

@ -1 +0,0 @@
/nix/store/665i5kn31xhw3ka3qbivy4if39jpwlxf-mart-w.de-0.1-env

File diff suppressed because it is too large Load diff

26
.gitignore vendored
View file

@ -18,3 +18,29 @@ hugo.linux
result
result-*
# Ingore direnv state dir
**/.direnv/
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work

View file

@ -1,16 +1,43 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
stdenv.mkDerivation rec {
name = "mart-w.de-${version}";
version = "0.1";
with pkgs; let
vendoredDeps = stdenv.mkDerivation rec {
name = "hugoVendoredDeps";
src = ./.;
nativeBuildInputs = [
git
go
hugo
];
buildPhase = ''
hugo mod vendor
'';
installPhase = ''
mkdir -p $out
cp -r ./_vendor/* $out
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "sha256-8dsJlVvCHUE/rI9YkuJVF+Nk2DeUIAiNLR4Fu/YZg50=";
};
in
stdenv.mkDerivation rec {
name = "mart-w.de-${version}";
version = "1.1.0";
src = ./.;
nativeBuildInputs = [
go
hugo
];
buildPhase = ''
ln -s ${vendoredDeps} _vendor
hugo
'';

View file

@ -1,3 +1,7 @@
baseURL = 'https://mart-w.de/'
languageCode = 'en-gb'
languageCode = 'de-de'
title = 'mart-ws amazing homepage'
[module]
[[module.imports]]
path = "github.com/CaiJimmy/hugo-theme-stack/v3"