-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.nix
48 lines (40 loc) · 2 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
45
46
47
48
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, acid-state, base, binary, bytestring, cereal
, containers, data-default, directory, exceptions, fbida
, filemanip-extra, filepath, generic-data, generic-lens, hslogger
, HUnit, JuicyPixels, lens, lens-path, ListLike, mtl, network-uri
, parsec, pretty, process, process-extras, pureMD5, QuickCheck
, regex-compat-tdfa, regex-tdfa, safecopy, sr-errors, sr-log
, sr-utils, stdenv, syb, template-haskell, temporary, text, th-lift
, th-orphans, threads, transformers, unexceptionalio-trans, unix
, Unixutils, utf8-string, web-routes, web-routes-th
}:
mkDerivation {
pname = "image-cache";
version = "0.27";
src = ./.;
libraryHaskellDepends = [
acid-state base binary bytestring cereal containers data-default
directory exceptions filemanip-extra filepath generic-data
generic-lens hslogger HUnit JuicyPixels lens lens-path ListLike mtl
network-uri parsec pretty process process-extras pureMD5 QuickCheck
regex-compat-tdfa regex-tdfa safecopy sr-errors sr-log sr-utils syb
template-haskell temporary text th-lift th-orphans threads
transformers unexceptionalio-trans unix Unixutils utf8-string
web-routes web-routes-th
];
libraryToolDepends = [ fbida ];
homepage = "http://src.seereason.com/image-cache";
description = "Support for image file processing and caching";
license = stdenv.lib.licenses.unfree;
hydraPlatforms = stdenv.lib.platforms.none;
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id;
drv = variant (haskellPackages.callPackage f {});
in
if pkgs.lib.inNixShell then drv.env else drv