-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
37 lines (29 loc) · 930 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
description = "Collection of a one-file haskell programs in one flake";
inputs.haskell-flake-utils.url = "github:ivanovs-4/haskell-flake-utils";
outputs = { self, nixpkgs, haskell-flake-utils }:
haskell-flake-utils.lib.simpleHs2flake {
inherit self nixpkgs;
pname = "ants";
# src = ./.; # Uncomment if this flake.nix is not in the root of the repo
hpackages = h: with h; [
optparse-applicative
typed-process
];
tune-hpackages = (pkgs:
with pkgs.haskell.lib;
with haskell-flake-utils.lib; {
lens-datetime = [ (jailbreakUnbreak pkgs) dontCheck ];
});
runtimeDepsDefault = {pkgs}: with pkgs; [
];
runtimeDeps = {pkgs}: with pkgs; {
"run-guile" = [
guile
];
};
extShellBuildInputs = {pkgs}: with pkgs; [
haskellPackages.haskell-language-server
];
};
}