Compare commits
No commits in common. "c524a4a820488c51505eea458ebcdd6cf42a3cfd" and "0c8387ce023d625e84008e2d9e46e4b24e17aeb6" have entirely different histories.
c524a4a820
...
0c8387ce02
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
1
.direnv/nix-profile-.4195.809cca784b9f
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/yh8plh4ww2rk9085gg552ivcr0ykfma7-brokentech.cloud-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
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,9 +18,6 @@ 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,7 +1,8 @@
|
||||||
{pkgs ? import <nixpkgs> {}}:
|
{pkgs ? import <nixpkgs> {}}:
|
||||||
with pkgs; let
|
with pkgs;
|
||||||
vendoredDeps = stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "hugoVendoredDeps";
|
name = "brokentech.cloud-${version}";
|
||||||
|
version = "0.1";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
|
@ -12,31 +13,6 @@ with pkgs; let
|
||||||
];
|
];
|
||||||
|
|
||||||
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