Add build step to flake.nix

This commit is contained in:
Bill Ewanick 2023-08-02 17:18:20 -04:00
parent e6e53be35b
commit 36394395c0

View file

@ -19,11 +19,17 @@
in in
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
name = "seal-generator-shell";
buildInputs = with pkgs.haskellPackages; buildInputs = with pkgs.haskellPackages;
[ [
ghc' ghc'
hlint hlint
haskell-language-server haskell-language-server
(pkgs.writeShellScriptBin "build-seal-generator" ''
${ghc'}/bin/ghc -outputdir dist -O2 -static generateSealPosts.hs
'')
]; ];
}; };
}); });