forked from janek/compareware
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{
|
|
inputs = {
|
|
# Here you can adjust the IHP version of your project
|
|
# You can find new releases at https://github.com/digitallyinduced/ihp/releases
|
|
ihp.url = "github:digitallyinduced/ihp/v1.1";
|
|
nixpkgs.follows = "ihp/nixpkgs";
|
|
flake-parts.follows = "ihp/flake-parts";
|
|
devenv.follows = "ihp/devenv";
|
|
systems.follows = "ihp/systems";
|
|
};
|
|
|
|
outputs = inputs@{ ihp, flake-parts, systems, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = import systems;
|
|
imports = [ ihp.flakeModules.default ];
|
|
|
|
perSystem = { pkgs, ... }: {
|
|
ihp = {
|
|
enable = true;
|
|
projectPath = ./.;
|
|
packages = with pkgs; [
|
|
# Native dependencies, e.g. imagemagick
|
|
];
|
|
haskellPackages = p: with p; [
|
|
# Haskell dependencies go here
|
|
p.ihp
|
|
cabal-install
|
|
base
|
|
wai
|
|
text
|
|
hlint
|
|
http-conduit
|
|
aeson
|
|
];
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|