nixpkgs/pkgs/development/haskell-modules
Gabriel Gonzalez e57fd11bb4 Add pkgs.haskell.lib.readDirectory utility
This adds a `readDirectory` utility that can be used to "slurp" a directory
full of `cabal2nix`-generated files and transform them into a Haskell package
override set.  The main use of this is so that users don't have to write:

```
{ overrides = self: super: {
    foo = self.callPackage ./path/to/foo.nix { };

    bar = self.callPackage ./path/to/bar.nix { };

    ...
  };
}
```

Instead, they can write:

```
{ overrides = pkgs.haskell.lib.readDirectory ./path/to;
}
```

This is a an alternative to `packageSourceOverrides` which primarily addresses
the following use cases:

* The desired package is not yet available in `all-cabal-hashes` (perhaps the
  user is pinned to an older revision of `nixpkgs`)
* The default `cabal2nix` invocation used by `packageSourceOverrides`
  does not use the desired `cabal2nix` flags
* The user wants to avoid the use of import-from-derivation
2018-07-03 09:25:15 -07:00
..
patches haskell-lambdabot-core: apply patch from @int-e to fix GHC 8.4.x build 2018-05-23 12:24:31 +02:00
configuration-common.nix dhall-nix: fix build 2018-07-02 19:45:02 +01:00
configuration-ghc-7.10.x.nix Fix GHCJS 7.10 2018-04-01 23:25:37 -04:00
configuration-ghc-8.0.x.nix GHCJS: Fix GHCJS with haddock-library-1.4.3 2018-04-02 00:23:32 -04:00
configuration-ghc-8.2.x.nix hledger: fix ghc-8.2.x build of the new 1.10 version 2018-07-02 11:29:10 +02:00
configuration-ghc-8.4.x.nix hledger: fix ghc-8.2.x build of the new 1.10 version 2018-07-02 11:29:10 +02:00
configuration-ghc-head.nix haskell package set configuration clean-up 2018-01-09 20:32:55 +01:00
configuration-ghcjs.nix ghcjs: remove old-time 2018-06-11 10:29:12 -04:00
configuration-hackage2nix.yaml LTS Haskell 11.15 2018-07-01 22:03:28 +02:00
configuration-halvm-2.4.0.nix haskell infra: Misc cleanups 2017-08-03 13:12:01 +02:00
configuration-nix.nix haskell: Move version dependent overrides from to configuration-common 2018-06-30 15:49:36 +01:00
default.nix haskellPackages: Fix overriding all-cabal-hashes 2018-03-25 20:39:38 -04:00
generic-builder.nix haskell-generic-builder: bake the package name and version into --docdir 2018-06-22 17:50:11 +02:00
generic-stack-builder.nix generic-stack-builder: also support nix-build 2018-05-09 18:12:13 -05:00
hackage-packages.nix hackage-packages.nix: automatic Haskell package set update 2018-07-02 11:29:10 +02:00
hoogle-local-wrapper.sh
hoogle.nix Revert "Fix null deps in ghcWithHoogle" 2018-06-22 14:21:44 +02:00
initial-packages.nix Remove HIE package set until automation can be put in place. 2018-03-23 10:06:58 -04:00
lib.nix Add pkgs.haskell.lib.readDirectory utility 2018-07-03 09:25:15 -07:00
make-package-set.nix haskell infra: Use self.ghc rather than closing over initial value 2018-06-07 14:27:44 -04:00
with-packages-wrapper.nix ghcjs-ng: Move to $out/lib/ghcjs-8.4 2018-06-26 17:43:58 -04:00