generated from UnBParadigmas2023-2/RepositorioTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
48 lines (44 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
{
description = "EscapeFromCurry";
inputs.nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
hPkgs = pkgs.haskell.packages."ghc94";
projectDevTools = [
hPkgs.ghc
hPkgs.ghcid
hPkgs.fourmolu
hPkgs.hlint
hPkgs.hoogle
hPkgs.haskell-language-server
hPkgs.implicit-hie
hPkgs.retrie
hPkgs.gloss
stack-wrapped
pkgs.zlib
pkgs.libGL
pkgs.libGLU
];
stack-wrapped = pkgs.symlinkJoin {
name = "stack";
paths = [ pkgs.stack ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/stack \
--add-flags "\
--no-nix \
--system-ghc \
--no-install-ghc \
"
'';
};
in {
devShells.default = pkgs.mkShell {
buildInputs = projectDevTools;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath projectDevTools;
};
});
}