mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
e57fd11bb4
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 |
||
---|---|---|
.. | ||
patches | ||
configuration-common.nix | ||
configuration-ghc-7.10.x.nix | ||
configuration-ghc-8.0.x.nix | ||
configuration-ghc-8.2.x.nix | ||
configuration-ghc-8.4.x.nix | ||
configuration-ghc-head.nix | ||
configuration-ghcjs.nix | ||
configuration-hackage2nix.yaml | ||
configuration-halvm-2.4.0.nix | ||
configuration-nix.nix | ||
default.nix | ||
generic-builder.nix | ||
generic-stack-builder.nix | ||
hackage-packages.nix | ||
hoogle-local-wrapper.sh | ||
hoogle.nix | ||
initial-packages.nix | ||
lib.nix | ||
make-package-set.nix | ||
with-packages-wrapper.nix |