Created
July 16, 2015 14:34
-
-
Save codedmart/13e889f54080a602f216 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| f = { mkDerivation, aeson, attoparsec, attoparsec-enumerator | |
| , base, bytestring, conduit, conduit-extra, either, engine-io | |
| , http-types, monad-control, mtl, resourcet, rethinkdb | |
| , servant-server, socket-io, stdenv, stm, text, transformers | |
| , unordered-containers, wai, wai-websockets, warp, websockets | |
| }: | |
| mkDerivation { | |
| pname = "lumi-dashboard-servant"; | |
| version = "0.1.0.0"; | |
| src = ./.; | |
| isLibrary = false; | |
| isExecutable = true; | |
| buildDepends = [ | |
| aeson attoparsec attoparsec-enumerator base bytestring conduit | |
| conduit-extra either engine-io http-types monad-control mtl | |
| resourcet rethinkdb servant-server socket-io stm text transformers | |
| unordered-containers wai wai-websockets warp websockets | |
| ]; | |
| license = stdenv.lib.licenses.unfree; | |
| }; | |
| drv = pkgs.haskell.packages.${compiler}.callPackage f {}; | |
| engineIoWai = pkgs.callPackage ../opensrc/engine.io/engine-io-wai/default.nix {}; | |
| in | |
| if pkgs.lib.inNixShell then drv.env else drv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment