2022-07-22 05:41:43 +00:00
|
|
|
{ self, nixpkgs, utils, haskellNix }@ inputs:
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
overlay = self: _: {
|
|
|
|
hsPkgs =
|
|
|
|
self.haskell-nix.project' rec {
|
|
|
|
src = ./.;
|
2024-01-23 05:53:11 +00:00
|
|
|
compiler-nix-name = "ghc928";
|
2022-07-22 05:41:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
haskellNix.overlay
|
|
|
|
overlay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
flake = pkgs.hsPkgs.flake { };
|
|
|
|
in
|
2024-01-23 05:25:13 +00:00
|
|
|
{
|
2022-07-22 05:41:43 +00:00
|
|
|
packages.default = flake.packages."skeleton-web:exe:site";
|
|
|
|
apps.default = {
|
|
|
|
type = "app";
|
|
|
|
program = "${flake.packages."skeleton-web:exe:site"}/bin/site";
|
|
|
|
};
|
2024-01-23 05:25:13 +00:00
|
|
|
# Overwrite devShells being inported from haskell-nix
|
|
|
|
devShells.default = pkgs.callPackage ./shell.nix {
|
2023-05-02 04:17:42 +00:00
|
|
|
inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell;
|
|
|
|
};
|
2022-07-22 05:41:43 +00:00
|
|
|
}
|
|
|
|
)
|