1
0
Fork 0
sealPostGenerator/flake.nix

37 lines
957 B
Nix
Raw Normal View History

{
description = "A Nix flake for a blog-post generating script, written in Haskell, with a seal bent.";
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; [
dhall
neat-interpolation
random
]);
in
{
devShells.default = pkgs.mkShell {
2023-08-02 17:18:20 -04:00
name = "seal-generator-shell";
buildInputs = with pkgs.haskellPackages;
[
ghc'
hlint
haskell-language-server
2023-08-02 17:18:20 -04:00
(pkgs.writeShellScriptBin "build-seal-generator" ''
${ghc'}/bin/ghc -outputdir dist -O2 -static generateSealPosts.hs
'')
];
};
});
}