-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
31 lines (23 loc) · 809 Bytes
/
shell.nix
File metadata and controls
31 lines (23 loc) · 809 Bytes
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
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }:
let
inherit (nixpkgs) pkgs;
f = import ./default.nix ;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else if compiler == "profile"
then pkgs.profiledHaskellPackages
else pkgs.haskell.packages.${compiler};
variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id;
drv = haskellPackages.callPackage f { inherit (pkgs) gtk3; };
buildInputsS = [
haskellPackages.cabal-install
haskellPackages.haskell-language-server
pkgs.gtk3
pkgs.gobject-introspection
pkgs.glib
];
in
haskellPackages.shellFor {
packages = p: [drv];
buildInputs = buildInputsS;
}