Skip to content

Commit

Permalink
update .nix files
Browse files Browse the repository at this point in the history
  • Loading branch information
stepcut committed Sep 22, 2015
1 parent b9025b4 commit b390d67
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 45 deletions.
19 changes: 9 additions & 10 deletions default.nix
Expand Up @@ -5,27 +5,26 @@
, ixset, jmacro, lens, mtl, network, network-uri, old-locale
, openssl, process, random, reform, reform-happstack, reform-hsp
, safecopy, stdenv, stm, tagsoup, text, time, time-locale-compat
, unordered-containers, utf8-string, uuid, vector, web-plugins
, web-routes, web-routes-happstack, web-routes-hsp, web-routes-th
, xss-sanitize, userid
, 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
}:
mkDerivation {
pname = "clckwrks";
version = "0.23.6";
version = "0.23.10";
src = ./.;
buildDepends = [
libraryHaskellDepends = [
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 tagsoup text time
time-locale-compat unordered-containers utf8-string uuid vector
web-plugins web-routes web-routes-happstack web-routes-hsp
web-routes-th xss-sanitize userid
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
];
buildTools = [ hsx2hs ];
extraLibraries = [ openssl ];
librarySystemDepends = [ openssl ];
homepage = "http://www.clckwrks.com/";
description = "A secure, reliable content management system (CMS) and blogging platform";
license = stdenv.lib.licenses.bsd3;
Expand Down
81 changes: 46 additions & 35 deletions shell.nix
@@ -1,36 +1,47 @@
with (import <nixpkgs> {}).pkgs;
let pkg = haskellngPackages.callPackage
({ 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, tagsoup, text, time, time-locale-compat
, unordered-containers, utf8-string, uuid, vector, web-plugins
, web-routes, web-routes-happstack, web-routes-hsp, web-routes-th
, xss-sanitize, userid
}:
mkDerivation {
pname = "clckwrks";
version = "0.23.6";
src = ./.;
buildDepends = [
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 tagsoup text time
time-locale-compat unordered-containers utf8-string uuid vector
web-plugins web-routes web-routes-happstack web-routes-hsp
web-routes-th xss-sanitize userid
];
buildTools = [ hsx2hs ];
extraLibraries = [ openssl ];
homepage = "http://www.clckwrks.com/";
description = "A secure, reliable content management system (CMS) and blogging platform";
license = stdenv.lib.licenses.bsd3;
}) {};
{ 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, tagsoup, 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
}:
mkDerivation {
pname = "clckwrks";
version = "0.23.10";
src = ./.;
libraryHaskellDepends = [
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 tagsoup 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
];
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
pkg.env

if pkgs.lib.inNixShell then drv.env else drv

0 comments on commit b390d67

Please sign in to comment.