{ mkDerivation, aeson, attoparsec, base, base16-bytestring
, base64-bytestring, byteable, bytestring, bytestring-tree-builder
, containers, cryptonite, digest, directory, filepath, hspec
, memory, mmap, pipes, pipes-attoparsec, pipes-bytestring
, pipes-zlib, process, QuickCheck, stdenv, text, transformers
, utf8-string, zlib
}:
mkDerivation {
  pname = "duffer";
  version = "0.1.0.0";
  src = ./.;
  libraryHaskellDepends = [
    aeson attoparsec base base16-bytestring base64-bytestring byteable
    bytestring bytestring-tree-builder containers cryptonite digest
    directory filepath memory mmap pipes pipes-attoparsec
    pipes-bytestring pipes-zlib text transformers utf8-string zlib
  ];
  testHaskellDepends = [
    aeson attoparsec base byteable bytestring containers digest
    directory filepath hspec process QuickCheck transformers
    utf8-string
  ];
  doCheck = false;
  doHaddock = false;
  homepage = "http://github.com/vaibhavsagar/duffer#readme";
  description = "Initial project template from stack";
  license = stdenv.lib.licenses.bsd3;
}

{ mkDerivation, aeson, attoparsec, base, base16-bytestring
, base64-bytestring, byteable, bytestring, bytestring-tree-builder
, containers, cryptonite, digest, directory, filepath, hspec
, memory, mmap, pipes, pipes-attoparsec, pipes-bytestring
, pipes-zlib, process, QuickCheck, stdenv, text, transformers
, utf8-string, zlib, pkgs
}: let patched-pipes-zlib = pkgs.haskell.lib.doJailbreak pipes-zlib; in
mkDerivation {
  pname = "duffer";
  version = "0.1.0.0";
  src = ./.;
  libraryHaskellDepends = [
    aeson attoparsec base base16-bytestring base64-bytestring byteable
    bytestring bytestring-tree-builder containers cryptonite digest
    directory filepath memory mmap pipes pipes-attoparsec
    pipes-bytestring patched-pipes-zlib text transformers utf8-string zlib
  ];
  testHaskellDepends = [
    aeson attoparsec base byteable bytestring containers digest
    directory filepath hspec process QuickCheck transformers
    utf8-string
  ];
  doCheck = false;
  doHaddock = false;
  homepage = "http://github.com/vaibhavsagar/duffer#readme";
  description = "Initial project template from stack";
  license = stdenv.lib.licenses.bsd3;
}

Work around pipes-zlib's cabal version bounds
Work around pipes-zlib's cabal version bounds
