diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/default.nix b/default.nix index ad508d8..df8b45f 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,7 @@ let pkgs = import <nixpkgs> {}; rootSrc = pkgs.nix-gitignore.gitignoreSource [] ./.; + nixfmt = import (builtins.fetchTarball https://github.com/serokell/nixfmt/archive/master.tar.gz) {}; # Taken from: # http://www.cs.yale.edu/homes/lucas.paul/posts/2017-04-10-hakyll-on-nix.html @@ -99,6 +100,7 @@ in with pkgs; with pkgs.stdenv; rec { buildInputs = [ websiteBuilder (pkgs.haskellPackages.ghcWithPackages (p: with p; [ hakyll ])) + nixfmt ]; }; publishScript = pkgs.writeShellScriptBin "publish.sh" '' |