-
Notifications
You must be signed in to change notification settings - Fork 6
/
default.nix
47 lines (42 loc) · 1.17 KB
/
default.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
# { nixpkgs ? import <nixpkgs> {} }:
# let
# sources = {
# haskellNix = builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz";
# };
# haskellNix = import sources.haskellNix {};
# # Import nixpkgs and pass the haskell.nix provided nixpkgsArgs
# pkgs = import haskellNix.sources.nixpkgs haskellNix.nixpkgsArgs;
# in pkgs.haskell-nix.project {
# src = pkgs.haskell-nix.haskellLib.cleanGit {
# name = "tla-transmutation";
# src = ./.;
# };
# compiler-nix-name = "ghc8102";
# }
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
inherit (pkgs) haskellPackages;
haskellDeps = ps: with ps; [
base
aeson
casing
extra
];
ghc = haskellPackages.ghcWithPackages haskellDeps;
nixPackages = [
ghc
nixpkgs.haskellPackages.haskell-language-server
nixpkgs.haskellPackages.hlint
nixpkgs.haskellPackages.apply-refact
nixpkgs.haskellPackages.hoogle
nixpkgs.haskellPackages.hindent
nixpkgs.haskellPackages.hasktags
nixpkgs.haskellPackages.happy
nixpkgs.haskellPackages.stylish-haskell
];
in
pkgs.stdenv.mkDerivation {
name = "env";
buildInputs = nixPackages;
}