Compare commits
3 commits
915963ff9f
...
518bcab349
Author | SHA1 | Date | |
---|---|---|---|
Martin Wurm | 518bcab349 | ||
Martin Wurm | e203d349d3 | ||
Martin Wurm | 8da4a628c7 |
41
default.nix
41
default.nix
|
@ -1,5 +1,8 @@
|
||||||
{pkgs ? import <nixpkgs> {}}:
|
{
|
||||||
with pkgs; let
|
pkgs ? import <nixpkgs> { },
|
||||||
|
}:
|
||||||
|
with pkgs;
|
||||||
|
let
|
||||||
vendoredDeps = stdenv.mkDerivation rec {
|
vendoredDeps = stdenv.mkDerivation rec {
|
||||||
name = "hugoVendoredDeps";
|
name = "hugoVendoredDeps";
|
||||||
|
|
||||||
|
@ -25,24 +28,24 @@ with pkgs; let
|
||||||
outputHash = "sha256-8dsJlVvCHUE/rI9YkuJVF+Nk2DeUIAiNLR4Fu/YZg50=";
|
outputHash = "sha256-8dsJlVvCHUE/rI9YkuJVF+Nk2DeUIAiNLR4Fu/YZg50=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mart-w.de-${version}";
|
name = "mart-w.de-${version}";
|
||||||
version = "1.0.2";
|
version = "1.1.0";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
go
|
go
|
||||||
hugo
|
hugo
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
ln -s ${vendoredDeps} _vendor
|
ln -s ${vendoredDeps} _vendor
|
||||||
hugo
|
hugo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r ./public/* $out
|
cp -r ./public/* $out
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
1
layouts/partials/head/custom.html
Normal file
1
layouts/partials/head/custom.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<meta name="fediverse:creator" content="@mart_w@chaos.social">
|
Loading…
Reference in a new issue