seal-blog/flake.nix

35 lines
773 B
Nix
Raw Normal View History

2023-04-10 19:42:25 -04:00
{
description = "A Nix flake for my long-running seal blog";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
ghc' = pkgs.haskellPackages.ghcWithHoogle (self: with self; [
2023-04-19 18:42:09 -04:00
dhall
2023-04-10 19:42:25 -04:00
hakyll
neat-interpolation
random
split
]);
in
{
devShells.default = pkgs.mkShell {
name = "hakyll-shell";
buildInputs = with pkgs.haskellPackages;
[
ghc'
hlint
2023-04-19 18:42:09 -04:00
haskell-language-server
2023-04-10 19:42:25 -04:00
];
};
});
}