From cca23be02770be16314f6edae178a6630c7e03a4 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 23 Feb 2020 17:03:24 +0100 Subject: [PATCH] hugo: add git as a dependency Hugo needs Git to find meta informations such as the pubDate --- images/hugo/default.nix | 2 ++ lib/buildCLIImage.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/images/hugo/default.nix b/images/hugo/default.nix index 61a78ee..6806f7a 100644 --- a/images/hugo/default.nix +++ b/images/hugo/default.nix @@ -1,6 +1,8 @@ { buildCLIImage , hugo +, gitReallyMinimal }: buildCLIImage { drv = hugo; + extraContents = [ gitReallyMinimal ]; } diff --git a/lib/buildCLIImage.nix b/lib/buildCLIImage.nix index 17c479c..b5109a1 100644 --- a/lib/buildCLIImage.nix +++ b/lib/buildCLIImage.nix @@ -5,6 +5,7 @@ { drv # derivation to build the image for # Name of the binary to run by default , binName ? (builtins.parseDrvName drv.name).name +, extraContents ? [] , meta ? drv.meta }: let @@ -17,7 +18,7 @@ let # most program need TLS certs cacert drv - ]; + ] ++ extraContents; config = { Cmd = [ "/bin/${binName}" ];