Skip to content

Instantly share code, notes, and snippets.

@jml
Created March 1, 2015 13:40
Show Gist options
  • Save jml/d36f9e2210a4de3f10a1 to your computer and use it in GitHub Desktop.
Save jml/d36f9e2210a4de3f10a1 to your computer and use it in GitHub Desktop.
{
packageOverrides = pkgs: rec {
haskellPackages = with pkgs.haskellPackages; pkgs.haskellPackages // rec {
monadLogger = callPackage ./haskell/monad-logger.nix {};
monadControl_0_3_x = callPackage ./haskell/monad-control-0.3.3.1.nix {};
transformers = callPackage ./haskell/transformers.nix {};
};
};
}
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, aeson, classyPrelude, classyPreludeConduit
, classyPreludeYesod, conduit, dataDefault, fastLogger, fileEmbed
, hjsmin, hspec, httpConduit, monadControl_0_3_x, monadLogger, persistent
, persistentSqlite, persistentTemplate, resourcet, safe
, shakespeare, text, time, transformers, unorderedContainers
, vector, waiExtra, waiLogger, warp, yaml, yesod, yesodAuth
, yesodCore, yesodForm, yesodStatic, yesodTest
, yesodBin
}:
cabal.mkDerivation (self: {
pname = "haverer-api";
version = "0.0.0";
src = ./.;
isLibrary = true;
isExecutable = true;
buildDepends = [
aeson classyPrelude classyPreludeConduit classyPreludeYesod conduit
dataDefault fastLogger fileEmbed hjsmin httpConduit monadControl_0_3_x
monadLogger persistent persistentSqlite persistentTemplate safe
shakespeare text time unorderedContainers vector waiExtra waiLogger
warp yaml yesod yesodAuth yesodCore yesodForm yesodStatic yesodBin
];
testDepends = [
classyPrelude classyPreludeYesod hspec monadLogger persistent
persistentSqlite resourcet transformers yesod yesodCore yesodTest
];
meta = {
platforms = self.ghc.meta.platforms;
};
})
nix-shell-haskell ()
{
nix-shell -E '(import <nixpkgs> {}).haskellPackages.callPackage ./default.nix {}' "$@"
}
$ nix-shell-haskell
error: anonymous function at "/Users/jml/src/haverer-api/default.nix":3:1 called without required argument ‘monadControl_0_3_x’, at "/Users/jml/nixpkgs/lib/customisation.nix":58:12
j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment