Compare commits
No commits in common. "f85f2edce5356f21a5341dc8236dac20f432ea9f" and "3ee5b0af433b54f62696b41112960ea35725f6d4" have entirely different histories.
f85f2edce5
...
3ee5b0af43
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
|
@ -0,0 +1 @@
|
|||
/nix/store/665i5kn31xhw3ka3qbivy4if39jpwlxf-mart-w.de-0.1-env
|
1856
.direnv/nix-profile-.4195.809cca784b9f.rc
Normal file
1856
.direnv/nix-profile-.4195.809cca784b9f.rc
Normal file
File diff suppressed because it is too large
Load diff
26
.gitignore
vendored
26
.gitignore
vendored
|
@ -18,29 +18,3 @@ 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
|
||||
|
||||
|
|
31
default.nix
31
default.nix
|
@ -1,43 +1,16 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
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
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mart-w.de-${version}";
|
||||
version = "1.1.0";
|
||||
version = "0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
go
|
||||
hugo
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
ln -s ${vendoredDeps} _vendor
|
||||
hugo
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue