initialise stack theme setup
This commit is contained in:
parent
9a6222ce55
commit
f85f2edce5
35
default.nix
35
default.nix
|
@ -1,16 +1,43 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mart-w.de-${version}";
|
||||
version = "0.1";
|
||||
with pkgs; let
|
||||
vendoredDeps = stdenv.mkDerivation rec {
|
||||
name = "hugoVendoredDeps";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
go
|
||||
hugo
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
hugo mod vendor
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./_vendor/* $out
|
||||
'';
|
||||
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = "sha256-8dsJlVvCHUE/rI9YkuJVF+Nk2DeUIAiNLR4Fu/YZg50=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mart-w.de-${version}";
|
||||
version = "1.1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
go
|
||||
hugo
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
ln -s ${vendoredDeps} _vendor
|
||||
hugo
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue