nixpkgs/pkgs
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
..
applications khard: fix build 2018-07-03 17:08:47 +02:00
build-support buildRustCrate: Add some commentary about target_os. 2018-07-02 11:22:47 -04:00
common-updater
data Merge pull request #42308 from romildo/upd.moka-icon-theme 2018-07-03 13:27:55 +01:00
desktops Merge pull request #42797 from jtojnar/tracker-update 2018-06-30 06:06:35 +02:00
development Add `pkgs.haskell.lib.readDirectory` utility 2018-07-03 09:25:15 -07:00
games ezquake: fix build after #41902 2018-07-03 12:44:57 +00:00
misc Merge pull request #42892 from sorki/uboot_novena 2018-07-02 19:10:50 -04:00
os-specific linux-hardened: Adjust config for 4.17.4 2018-07-03 08:35:37 -04:00
servers foundationdb: add 5.2.5 release, and new 6.0.0 snapshot 2018-07-03 09:09:02 -05:00
shells antibody: 3.5.0 -> 3.5.1 (#42818) 2018-06-30 19:05:28 +02:00
stdenv make-bootstrap-tools-cross: remove broken i686-musl variant 2018-06-25 11:16:10 -05:00
test Merge remote-tracking branch 'upstream/master' into staging 2018-06-18 15:30:39 -04:00
tools asciinema: 2.0.0 -> 2.0.1 2018-07-03 18:18:55 +02:00
top-level foundationdb: add 5.2.5 release, and new 6.0.0 snapshot 2018-07-03 09:09:02 -05:00