-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
39 lines (33 loc) · 1.48 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
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, acid-state, aeson, attoparsec, base, clckwrks
, containers, directory, filepath, happstack-hsp, happstack-server
, hsp, hsx2hs, ixset, mtl, old-locale, random, reform
, reform-happstack, reform-hsp, safecopy, stdenv, tagsoup
, template-haskell, text, time, time-locale-compat, uuid
, web-plugins, web-routes, web-routes-happstack, web-routes-th, cabal-install
}:
mkDerivation {
pname = "clckwrks-plugin-page";
version = "0.4.1";
src = ./.;
libraryHaskellDepends = [
acid-state aeson attoparsec base clckwrks containers directory
filepath happstack-hsp happstack-server hsp hsx2hs ixset mtl
old-locale random reform reform-happstack reform-hsp safecopy
tagsoup template-haskell text time time-locale-compat uuid
web-plugins web-routes web-routes-happstack web-routes-th cabal-install
];
buildTools = [ ];
homepage = "http://www.clckwrks.com/";
description = "support for CMS/Blogging in clckwrks";
license = stdenv.lib.licenses.bsd3;
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
buildTools = [ pkgs.haskellPackages.hsx2hs ];
drv = haskellPackages.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv