Compare commits

...

2 commits

Author SHA1 Message Date
Martin Wurm c524a4a820 make the thing go nix 2024-02-14 07:36:34 +01:00
Martin Wurm 8fc7bcb788 add direnv dir to .gitignore 2024-02-14 04:53:08 +01:00
4 changed files with 31 additions and 1861 deletions

View file

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

File diff suppressed because it is too large Load diff

3
.gitignore vendored
View file

@ -18,6 +18,9 @@ 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,8 +1,7 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
stdenv.mkDerivation rec {
name = "brokentech.cloud-${version}";
version = "0.1";
with pkgs; let
vendoredDeps = stdenv.mkDerivation rec {
name = "hugoVendoredDeps";
src = ./.;
@ -13,6 +12,31 @@ with pkgs;
];
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
'';