-
Notifications
You must be signed in to change notification settings - Fork 12
/
default.nix
24 lines (21 loc) · 943 Bytes
/
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
let
sources = import nix/sources.nix;
pkgs = import sources.nixpkgs {};
# Use the local hvega/ihaskell-hvega rather than the nixpkgs ones.
# I should probably be using an override.
#
hvegaSource = ./.;
hvegaDir = hvegaSource + "/hvega";
ihaskellvegaDir = hvegaSource + "/ihaskell-hvega";
gitignore = pkgs.nix-gitignore.gitignoreSourcePure [ ./.gitignore ];
ps = pkgs.haskellPackages;
hvega = ps.callCabal2nix "hvega" (gitignore hvegaDir) {};
ihaskell-hvega = ps.callCabal2nix "ihaskell-hvega" (gitignore ihaskellvegaDir) {};
in import "${sources.IHaskell}/release.nix" {
compiler = "ghc8107"; # what version is supported nowadays?
nixpkgs = pkgs;
# packages = p: [ hvega ihaskell-hvega ];
packages = p: [ hvega ihaskell-hvega p.aeson p.aeson-pretty p.Frames p.foldl p.formatting p.microlens ];
# packages = self: with self; [ hvega ihaskell-hvega ];
# systemPackages = self: with self; [ graphviz ];
}