2022-03-12 18:39:23 -05:00
|
|
|
{
|
2023-01-17 21:51:52 -05:00
|
|
|
inputs = {
|
2024-05-01 00:31:58 -04:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
haskell-flake.url = "github:srid/haskell-flake";
|
2023-01-17 21:51:52 -05:00
|
|
|
};
|
2024-05-01 00:31:58 -04:00
|
|
|
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
imports = [ inputs.haskell-flake.flakeModule ];
|
2022-03-12 18:39:23 -05:00
|
|
|
|
2024-05-01 00:31:58 -04:00
|
|
|
systems = nixpkgs.lib.systems.flakeExposed;
|
|
|
|
perSystem = { config, system, self', pkgs, ... }: {
|
2022-03-14 13:17:32 -04:00
|
|
|
|
2024-05-01 00:31:58 -04:00
|
|
|
_module.args.pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowBroken = true;
|
|
|
|
};
|
2022-03-12 18:39:23 -05:00
|
|
|
|
2024-05-01 00:31:58 -04:00
|
|
|
haskellProjects.default = {
|
|
|
|
basePackages = pkgs.haskell.packages.ghc94;
|
2022-03-12 18:39:23 -05:00
|
|
|
};
|
|
|
|
|
2024-05-01 00:31:58 -04:00
|
|
|
packages.default = self'.packages.snake;
|
|
|
|
apps.default = self'.apps.snake;
|
|
|
|
};
|
|
|
|
};
|
2022-03-12 18:39:23 -05:00
|
|
|
}
|