-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
22 lines (22 loc) · 703 Bytes
/
flake.nix
File metadata and controls
22 lines (22 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
ghcAndPkgs = pkgs.haskellPackages.ghcWithPackages
(ps: [ ps.clay ps.hakyll ps.witch ]);
in {
packages = rec {
thomasbach-dev =
pkgs.haskellPackages.callPackage (import ./thomasbach-dev.nix) { };
default = thomasbach-dev;
};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ ghcAndPkgs cabal-install ormolu ];
};
});
}