From dbc40668f5892be1236d3d78dde56bb7146aee94 Mon Sep 17 00:00:00 2001 From: Shaun Kerr Date: Sat, 25 Aug 2018 14:31:46 +1200 Subject: [PATCH] lied about it building purely --- README.md | 4 ++++ default.nix | 5 ++++- rf.cabal | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a065bf2..60c7d5b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Nix can be installed with: curl https://nixos.org/nix/install | sh ``` +### Dependencies + +`imagemagick` is required for the favicons. + ### Installing Enter the build environment diff --git a/default.nix b/default.nix index 3ea5e2d..c7b4414 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,6 @@ -{ mkDerivation, base, filepath, hakyll, hakyll-favicon, stdenv }: +{ mkDerivation, base, filepath, hakyll, hakyll-favicon, imagemagick +, stdenv +}: mkDerivation { pname = "rf"; version = "0.1.2.0"; @@ -6,6 +8,7 @@ mkDerivation { isLibrary = false; isExecutable = true; executableHaskellDepends = [ base filepath hakyll hakyll-favicon ]; + executableSystemDepends = [ imagemagick ]; homepage = "regularflolloping.com"; description = "tA's blog"; license = stdenv.lib.licenses.bsd3; diff --git a/rf.cabal b/rf.cabal index 8067aac..771f208 100644 --- a/rf.cabal +++ b/rf.cabal @@ -25,4 +25,5 @@ executable site , filepath , hakyll-favicon -- hs-source-dirs: + extra-libraries: imagemagick default-language: Haskell2010