Compare commits
2 commits
0c8387ce02
...
c524a4a820
Author | SHA1 | Date | |
---|---|---|---|
Martin Wurm | c524a4a820 | ||
Martin Wurm | 8fc7bcb788 |
|
@ -1 +0,0 @@
|
||||||
/nix/store/yh8plh4ww2rk9085gg552ivcr0ykfma7-brokentech.cloud-0.1-env
|
|
File diff suppressed because it is too large
Load diff
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,6 +18,9 @@ hugo.linux
|
||||||
result
|
result
|
||||||
result-*
|
result-*
|
||||||
|
|
||||||
|
# Ingore direnv state dir
|
||||||
|
**/.direnv/
|
||||||
|
|
||||||
# ---> Go
|
# ---> Go
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
# 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
|
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
||||||
|
|
32
default.nix
32
default.nix
|
@ -1,8 +1,7 @@
|
||||||
{pkgs ? import <nixpkgs> {}}:
|
{pkgs ? import <nixpkgs> {}}:
|
||||||
with pkgs;
|
with pkgs; let
|
||||||
stdenv.mkDerivation rec {
|
vendoredDeps = stdenv.mkDerivation rec {
|
||||||
name = "brokentech.cloud-${version}";
|
name = "hugoVendoredDeps";
|
||||||
version = "0.1";
|
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
|
@ -13,6 +12,31 @@ with pkgs;
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
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
|
hugo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue