forked from clckwrks/clckwrks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
48 lines (41 loc) · 2.04 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" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, acid-state, aeson, aeson-qq, attoparsec, base
, blaze-html, bytestring, cereal, containers, directory, filepath
, happstack-authenticate, happstack-hsp, happstack-jmacro
, happstack-server, happstack-server-tls, hsp, hsx-jmacro, hsx2hs
, ixset, jmacro, lens, mtl, network, network-uri, old-locale
, openssl, process, random, reform, reform-happstack, reform-hsp
, safecopy, stdenv, stm, text, time, time-locale-compat
, unordered-containers, userid, utf8-string, uuid-orphans
, uuid-types, vector, web-plugins, web-routes, web-routes-happstack
, web-routes-hsp, web-routes-th, xss-sanitize, cabal-install, Cabal
}:
mkDerivation {
pname = "clckwrks";
version = "0.23.10";
src = pkgs.haskellFilterSource [] ./.;
libraryHaskellDepends = [ Cabal
acid-state aeson aeson-qq attoparsec base blaze-html bytestring
cereal containers directory filepath happstack-authenticate
happstack-hsp happstack-jmacro happstack-server
happstack-server-tls hsp hsx-jmacro hsx2hs ixset jmacro lens mtl
network network-uri old-locale process random reform
reform-happstack reform-hsp safecopy stm text time
time-locale-compat unordered-containers userid utf8-string
uuid-orphans uuid-types vector web-plugins web-routes
web-routes-happstack web-routes-hsp web-routes-th xss-sanitize
cabal-install
];
librarySystemDepends = [ openssl ];
homepage = "http://www.clckwrks.com/";
description = "A secure, reliable content management system (CMS) and blogging platform";
license = stdenv.lib.licenses.bsd3;
};
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