2024-08-13 09:23:43 +00:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
utils,
|
|
|
|
haskellNix,
|
|
|
|
} @ inputs:
|
|
|
|
utils.lib.eachDefaultSystem (
|
|
|
|
system: let
|
|
|
|
overlay = self: _: {
|
|
|
|
hsPkgs = self.haskell-nix.project' rec {
|
|
|
|
src = ./.;
|
2024-10-18 11:16:30 +00:00
|
|
|
compiler-nix-name = "ghc910";
|
2024-08-13 09:23:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
haskellNix.overlay
|
|
|
|
overlay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
flake = pkgs.hsPkgs.flake {};
|
|
|
|
in {
|
|
|
|
packages.default = flake.packages."skeleton-web:exe:site";
|
|
|
|
apps.default = {
|
|
|
|
type = "app";
|
|
|
|
program = "${flake.packages."skeleton-web:exe:site"}/bin/site";
|
|
|
|
};
|
|
|
|
# Overwrite devShells being inported from haskell-nix
|
|
|
|
devShells.default = pkgs.callPackage ./shell.nix {
|
|
|
|
inherit (haskellNix.legacyPackages."${pkgs.system}") stylish-haskell;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|