diff options
author | EuAndreh <eu@euandre.org> | 2019-05-22 02:42:26 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-22 02:42:26 -0300 |
commit | 89042273974ba8056127c9949f8a349bdf3fd414 (patch) | |
tree | 9d37227a7339e465843a73d82c79180d7eedc6be | |
parent | TODOs.org (diff) | |
download | euandre.org-89042273974ba8056127c9949f8a349bdf3fd414.tar.gz euandre.org-89042273974ba8056127c9949f8a349bdf3fd414.tar.xz |
Add nixfmt to mkShell derivation
Diffstat (limited to '')
-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" '' |