Compare commits

..

No commits in common. "c524a4a820488c51505eea458ebcdd6cf42a3cfd" and "0c8387ce023d625e84008e2d9e46e4b24e17aeb6" have entirely different histories.

4 changed files with 1861 additions and 31 deletions

View file

@ -0,0 +1 @@
/nix/store/yh8plh4ww2rk9085gg552ivcr0ykfma7-brokentech.cloud-0.1-env

File diff suppressed because it is too large Load diff

3
.gitignore vendored
View file

@ -18,9 +18,6 @@ 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

View file

@ -1,7 +1,8 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs; let
vendoredDeps = stdenv.mkDerivation rec {
name = "hugoVendoredDeps";
with pkgs;
stdenv.mkDerivation rec {
name = "brokentech.cloud-${version}";
version = "0.1";
src = ./.;
@ -12,31 +13,6 @@ with pkgs; let
];
buildPhase = ''
hugo mod vendor
'';
installPhase = ''
mkdir -p $out
cp -r ./_vendor/* $out
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "sha256-3suJ9/OXtEqm3eg1zCEoA0TrAN+dYu+l6YRWjB41c6w=";
};
in
stdenv.mkDerivation rec {
name = "brokentech.cloud-${version}";
version = "0.1";
src = ./.;
nativeBuildInputs = [
hugo
];
buildPhase = ''
ln -s ${vendoredDeps} _vendor
hugo
'';