fix: actually add haskell

This commit is contained in:
Artur Manuel 2024-09-07 17:20:05 +01:00
commit b5f8727837
Failed to generate hash of commit
11 changed files with 5 additions and 25 deletions

View file

@ -0,0 +1,33 @@
{
description = "Cool Haskell Project with an unknown purpose";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
treefmt.url = "github:numtide/treefmt-nix";
};
outputs =
inputs@{ nixpkgs, ... }:
let
lib = nixpkgs.lib;
systems = [ "x86_64-linux" ];
forAllSystems =
f:
lib.genAttrs systems (
system:
f {
pkgs = import nixpkgs {
inherit system;
};
}
);
treefmtEval = forAllSystems ({ pkgs }: inputs.treefmt.lib.evalModule pkgs ./flake/treefmt.nix);
in
{
packages = forAllSystems ({ pkgs }: {
cool-haskell-project = pkgs.callPackage ./flake/package.nix {};
});
devShells = forAllSystems ({ pkgs }: {
default = pkgs.callPackage ./flake/shell.nix {};
});
formatter = forAllSystems ({ pkgs }: treefmtEval.${pkgs.system}.config.build.wrapper);
};
}