| Commit message (Collapse) | Author | Age |
|\
| |
| | |
haskell-lib: Factor out shell completion scripts helper
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
haskellPackages.shellFor: fix after recent getHaskellBuildInputs fix.
|
| |
| |
| |
| | |
Fixes #45318
|
| |
| |
| |
| |
| |
| |
| | |
Haskell packages overridden with justStaticExecutables
(like cabal-install, stack, pandoc, darcs, etc.) don't provide
libraries in the end result so it's futile to build them with library
profiling enabled because it will just take extra time.
|
|/
|
|
|
| |
For consistency and completeness; other helpers have these "plural"
variants too.
|
|
|
|
| |
5523ec8f3c78704c6e76b7675bfce41d24a3feb1 accidentally dropped the attribute lookup.
|
| |
|
|
|
|
| |
Add `...` for less painful downgrades in the future
|
|
|
|
| |
... as suggested by @roberth
|
|
|
|
| |
... as suggested by @roberth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|\
| |
| | |
ghc, haskell infra: #40642 direct to master
|
| | |
|
|/ |
|
|
|
|
|
| |
We already have {en,dis}ableLibraryProfiling and the builder already
accepts the executable profiling attribute; let's make it easy to use.
|
|
|
|
|
|
| |
This reverts commit 24d313e2039b6d89f8a1ba4c5be12b134479fe67.
Fixes #37750
|
|
|
|
|
|
|
|
| |
Recent changes [1] allow Hydra to build packages that are marked broken. To
avoid plenty of evaluation errors on Hydra, explicitly disable Hydra builds of
broken packages.
[1] https://github.com/NixOS/nixpkgs/issues/7541#issuecomment-357541243
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
package.""
Trying again, without changing the generic builder.
This reverts commit 65138e8a411244c81aefa21be280323d30010b96.
|
|
|
|
|
|
| |
This reverts commit d545ef3fa11198f12e525b641aeb33887694f97f. Please don't
commit substantial changes to the generic Haskell builder without giving me a
chance to review them.
|
|
|
|
|
|
| |
This works by extracting out some logic from generic-builder.nix to
make it possible to get at the relevant information by overriding
mkDerivation for the haskell package.
|
| |
|
|
|
|
| |
This reverts commit 89f5d52cf44baec14a7f542a605243777b16e7a5.
|
| |
|
| |
|
|
|
|
|
| |
Applying `haskell.lib.failOnAllWarnings` to a Haskell package enables the
`-Wall` and `-Werror` GHC options to turn all warnings into build failures.
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit dfb0f254844150d05d34150a975e6479b883d409, reversing
changes made to 7f8ff024372f985e96b438fa5591d9b43fc6e7bd. These changes broke
the ghcWithPackages wrapper:
nix-shell -p "haskellPackages.ghcWithPackages (ps: [ps.mtl])" --run "ghc-pkg list mtl"
/nix/store/szz84j5k1dy3jdashis6ws28d8l8zxxb-ghc-8.0.2-with-packages/lib/ghc-8.0.2/package.conf.d
(no packages)
|
|
|
|
| |
It has files in /usr/share which reference the bin output.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tested using:
$ cat test-strip.nix
with (import ./. {});
with haskell.lib;
haskell.packages.ghc802.override {
overrides = self: super: {
microlens = enableDWARFDebugging super.microlens;
};
}
$ nix-build -A microlens test-strip.nix
$ objdump -t <path-to-so-file>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The haskell lib is very close to not relying on Nixpkgs. I think
this is good---simpler to think about and matches Nixpkgs's lib.
- The haskell lib is only imported once
- stdenv is exposed more shallowly so it can be overriden more easily.
I'll eventually use this on Darwin to avoid the Sierra shared
library problems (unless changes are to be made system-wide).
Closes https://github.com/NixOS/nixpkgs/pull/27840.
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes https://github.com/NixOS/nixpkgs/pull/24850.
|
| |
|
|
|
|
| |
Also support linking the double-conversion package with ld.gold.
|
|
|
|
| |
Closes https://github.com/NixOS/nixpkgs/pull/23614.
|
| |
|
|\
| |
| | |
Haskell infrastructure: fix #9871 (overrideCabal)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As per the recommendation by @Mathnerd314, this change seems to work
with the testing I did.
It makes sense to me why it works, but I think it's in an important
enough place that someone with much deeper knowledge of Haskell
infrastructure in Nixpkgs should give it a really heavy review.
I also consolidated all the overrideCabal definitions (there were two)
into a single definition in haskell-modules/lib.nix.
|