forked from ericbmerritt/metadrift-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
44 lines (34 loc) · 1.51 KB
/
shell.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
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
compiler = "ghc801";
aeson-diff = pkgs.haskell.lib.dontCheck pkgs.haskell.packages.${compiler}.aeson-diff;
f = { mkDerivation, stdenv, wreq, aeson, text, optparse-applicative,
optparse-generic, split, bytestring, http-conduit, http-types, yaml,
data-lens, data-lens-template, containers, MissingH, time, cryptohash,
byteable, base64-bytestring, case-insensitive, old-locale, hindent,
filepath, doctest, hlint
}:
mkDerivation {
pname = "metadrift-client";
version = "0.1.0.0";
src = ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [ wreq aeson text aeson-diff optparse-applicative
optparse-generic split bytestring http-conduit http-types yaml
data-lens data-lens-template containers MissingH time cryptohash
byteable base64-bytestring case-insensitive old-locale ];
executableHaskellDepends = [ text hindent yaml filepath ];
buildDepends = [ ];
testHaskellDepends = [ doctest hlint ];
homepage = "https://github.com/ericbmerritt/metadrift-client";
description = "metadrift client package";
license = stdenv.lib.licenses.gpl3;
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv