hakyll-skeleton/outputs.nix
Fiscal Velvet Poet edee81e058
haskell: added stylish-haskell
progresses #1
2024-01-09 16:06:48 +10:00

31 lines
882 B
Nix

{ self, nixpkgs, utils, haskellNix }@ inputs:
utils.lib.eachDefaultSystem (system:
let
overlay = self: _: {
hsPkgs =
self.haskell-nix.project' rec {
src = ./.;
compiler-nix-name = "ghc8107";
};
};
pkgs = import nixpkgs {
inherit system;
overlays = [
haskellNix.overlay
overlay
];
};
flake = pkgs.hsPkgs.flake { };
in
flake // {
packages.default = flake.packages."skeleton-web:exe:site";
apps.default = {
type = "app";
program = "${flake.packages."skeleton-web:exe:site"}/bin/site";
};
devShell = pkgs.callPackage ./shell.nix {
inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell;
};
}
)