Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created July 16, 2015 14:34
Show Gist options
  • Select an option

  • Save codedmart/13e889f54080a602f216 to your computer and use it in GitHub Desktop.

Select an option

Save codedmart/13e889f54080a602f216 to your computer and use it in GitHub Desktop.
{ 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