Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@purefn
Created January 16, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purefn/026625ad116b05ff9a8d to your computer and use it in GitHub Desktop.
Save purefn/026625ad116b05ff9a8d to your computer and use it in GitHub Desktop.
with (import <nixpkgs> {}).pkgs;
let
modifiedHaskellPackages = haskellngPackages.override {
overrides = self: super: {
AesonBson = self.callPackage
({ mkDerivation, aeson, attoparsec, base, bson, hspec, HUnit, stdenv
, text, unordered-containers, vector
}:
mkDerivation {
pname = "AesonBson";
version = "0.2.1";
src = fetchgit {
url = "https://github.com/fujimura/aesonbson.git";
rev = "7ac58f74317fe0f61098654e231f03adc219989d";
sha256 = "1miic2lq08ply6mjqdmamwsamxv2dnz5hj1yyjb74bgklh3mc36l";
};
buildDepends = [
aeson attoparsec base bson unordered-containers vector
];
testDepends = [ aeson base bson hspec HUnit text ];
homepage = "https://github.com/nh2/AesonBson";
description = "Mapping between Aeson's JSON and Bson objects";
license = "unknown";
}) {};
};
};
pkg = modifiedHaskellPackages.callPackage
({ mkDerivation, aeson, AesonBson, ansi-wl-pprint, base, bifunctors
, blaze-html, blaze-markup, bson, bytestring, case-insensitive
, cereal, clay, configurator, containers, either, errors
, exceptions, failure, hslogger, http-conduit, http-types, jwt
, lens, mongoDB, mtl, network, network-uri, optparse-applicative
, parsers, profunctors, pureMD5, QuickCheck, safe, scientific
, scotty, semigroups, SHA, stdenv, tasty, tasty-hunit
, tasty-quickcheck, text, time, transformers, trifecta
, unordered-containers, uri, utf8-string, validation, wai
, wai-extra, wai-middleware-static, warp, word8, zip-archive
}:
mkDerivation {
pname = "hiberico";
version = "1";
src = ./.;
isLibrary = true;
isExecutable = true;
buildDepends = [
aeson AesonBson ansi-wl-pprint base bifunctors blaze-html
blaze-markup bson bytestring case-insensitive cereal clay
configurator containers either errors exceptions failure hslogger
http-conduit http-types jwt lens mongoDB mtl network network-uri
optparse-applicative parsers profunctors pureMD5 safe scientific
scotty semigroups SHA text time transformers trifecta
unordered-containers uri utf8-string validation wai wai-extra
wai-middleware-static warp word8 zip-archive
];
testDepends = [
aeson base bytestring QuickCheck tasty tasty-hunit tasty-quickcheck
text uri
];
homepage = "https://bitbucket.org/atlassian-marketplace/hiberico";
description = "Iberico in Haskell";
license = "unknown";
}) {};
in
pkg.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment