Skip to content

Commit e393451

Browse files
authored
readme: use a fully working example
1 parent 4c63945 commit e393451

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@ To keep `flake.nix` smaller (eg.: going from this [91-line flake.nix](https://gi
88

99
## Usage
1010

11+
To use haskell-flake in your Haskell projects, create a `flake.nix` containing the following:
12+
1113
```nix
1214
{
13-
outputs = { self, nixpkgs, flake-parts, haskell-flake, ... }:
15+
inputs = {
16+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
17+
flake-parts.url = "github:hercules-ci/flake-parts";
18+
haskell-flake.url = "github:srid/haskell-flake";
19+
};
20+
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
1421
flake-parts.lib.mkFlake { inherit self; } {
1522
systems = nixpkgs.lib.systems.flakeExposed;
16-
imports = [
17-
haskell-flake.flakeModule
18-
];
23+
imports = [ inputs.haskell-flake.flakeModule ];
1924
perSystem = { self', pkgs, ... }: {
2025
haskellProjects.default = {
2126
root = ./.;
22-
buildTools = hp: {
23-
fourmolu = hp.fourmolu;
24-
};
27+
# buildTools = hp: { fourmolu = hp.fourmolu; };
28+
# source-overrides = { };
29+
# overrides = self: super: { };
30+
# modifier = drv: drv;
2531
};
2632
};
2733
};

0 commit comments

Comments
 (0)