summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/lib.nix
Commit message (Collapse)AuthorAge
* Merge pull request #49477 from obsidiansystems/haskell-shell-completionsJohn Ericson2018-10-30
|\ | | | | haskell-lib: Factor out shell completion scripts helper
| * haskell-lib: Factor out shell completion scripts helperJohn Ericson2018-10-30
| |
* | haskell.lib.buildFromSdist: Allow overrideCabal [Fixes #45018]Will Fancher2018-10-19
| |
* | haskell.lib.getBuildInputs: Use generic builder passthru to implementSilvan Mosberger2018-10-03
|/
* Merge pull request #45348 from shlevy/shellFor-all-build-inputsPeter Simons2018-09-02
|\ | | | | haskellPackages.shellFor: fix after recent getHaskellBuildInputs fix.
| * haskellPackages.shellFor: fix after recent getHaskellBuildInputs fix.Shea Levy2018-08-19
| | | | | | | | Fixes #45318
* | haskell: disable library profiling for static executablesBas van Dijk2018-08-27
| | | | | | | | | | | | | | 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.
* | haskell lib: Add appendConfigureFlagsJohn Ericson2018-08-20
|/ | | | | For consistency and completeness; other helpers have these "plural" variants too.
* haskell.lib.getHaskellBuildInputs: Actually get the haskell build inputs.Shea Levy2018-08-14
| | | | 5523ec8f3c78704c6e76b7675bfce41d24a3feb1 accidentally dropped the attribute lookup.
* Fix type signatureGabriel Gonzalez2018-07-07
|
* pkgs.haskell.lib.packagesFromDirectory: forward compatibilityRobert Hensing2018-07-06
| | | | Add `...` for less painful downgrades in the future
* Rename `readDirectory` to `packagesFromDirectory`Gabriel Gonzalez2018-07-04
| | | | ... as suggested by @roberth
* Change `readDirectory` to accept an attribute setGabriel Gonzalez2018-07-03
| | | | ... as suggested by @roberth
* Add `pkgs.haskell.lib.readDirectory` utilityGabriel Gonzalez2018-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* haskell infra: Adds buildFlags logicMoritz Angermann2018-05-23
|
* Revert "ghc, haskell infra: #40642 direct to master"Peter Simons2018-05-23
|
* Merge pull request #40929 from obsidiansystems/cross-ghc-for-masterPeter Simons2018-05-22
|\ | | | | ghc, haskell infra: #40642 direct to master
| * haskell infra: Adds buildFlags logicMoritz Angermann2018-05-21
| |
* | Make getHaskellBuildInputs / shellFor work with overrideCabalWill Fancher2018-05-17
|/
* haskell.lib: Add {en,dis}ableExecutableProfiling transformerBen Gamari2018-03-29
| | | | | We already have {en,dis}ableLibraryProfiling and the builder already accepts the executable profiling attribute; let's make it easy to use.
* Revert "justStaticExecutables: enable -dead_strip on mac to shrink closure"Matthew Bauer2018-03-26
| | | | | | This reverts commit 24d313e2039b6d89f8a1ba4c5be12b134479fe67. Fixes #37750
* haskell.lib.markBroken: explicitly disable Hydra buildsPeter Simons2018-01-20
| | | | | | | | 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
* Move packageSourceOverrides to haskellLibWill Fancher2018-01-18
|
* Add documentation for haskell-modules/lib.nixRobert Hensing2018-01-12
|
* haskellLib: Add shellAware functionShea Levy2018-01-10
|
* Revert "Revert "hslib: Function to extract the haskell build inputs of a ↵Shea Levy2017-12-29
| | | | | | | | package."" Trying again, without changing the generic builder. This reverts commit 65138e8a411244c81aefa21be280323d30010b96.
* Revert "hslib: Function to extract the haskell build inputs of a package."Peter Simons2017-12-28
| | | | | | This reverts commit d545ef3fa11198f12e525b641aeb33887694f97f. Please don't commit substantial changes to the generic Haskell builder without giving me a chance to review them.
* hslib: Function to extract the haskell build inputs of a package.Shea Levy2017-12-23
| | | | | | 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.
* Revert "Revive multiple outputs for Haskell packages."Peter Simons2017-12-05
|
* Revert "Revert "Merge pull request #27209 from nc6/nc/haskell-multiple-out""Nicholas Clarke2017-11-27
| | | | This reverts commit 89f5d52cf44baec14a7f542a605243777b16e7a5.
* haskell.lib: strip trailing whitespacePeter Simons2017-09-19
|
* haskell.lib: add doBenchmark helper functionPeter Simons2017-09-19
|
* haskell: introduce failOnAllWarningsBas van Dijk2017-09-10
| | | | | Applying `haskell.lib.failOnAllWarnings` to a Haskell package enables the `-Wall` and `-Werror` GHC options to turn all warnings into build failures.
* Revert "Merge pull request #27209 from nc6/nc/haskell-multiple-out"Peter Simons2017-09-06
| | | | | | | | | | 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)
* Don't build separate bin output for alex.Nicholas Clarke2017-09-04
| | | | It has files in /usr/share which reference the bin output.
* Enable multiple outputs for Haskell packages.Nicholas Clarke2017-09-04
|
* haskell: add combinator to enable DWARF debuggingDomen Kožar2017-09-02
| | | | | | | | | | | | | | | | | 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>
* haskell: add the checkUnusedPackages function including docsBas van Dijk2017-08-30
|
* haskell: remove any extraneous outputs from sdistTarballMoritz Kiefer2017-08-10
|
* haskell infra: Misc cleanupsJohn Ericson2017-08-03
| | | | | | | | | | | | | - 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.
* haskell.lib: drop obsolete hasNoDataOutput and hasNoDocOutput functionsPeter Simons2017-07-29
|
* enable split-output builds for all haskellPackagesmichael bishop2017-07-27
|
* justStaticExecutables: enable -dead_strip on mac to shrink closuremichael bishop2017-06-14
|
* haskell-packages: factor package set construction in new fileBenno Fünfstück2017-04-21
| | | | Closes https://github.com/NixOS/nixpkgs/pull/24850.
* haskell-lib: Add overrideSrc helperShea Levy2017-04-08
|
* haskell: add the linkWithGold function to link packages with ld.goldBas van Dijk2017-04-07
| | | | Also support linking the double-conversion package with ld.gold.
* haskell: use GHCJS to build Setup.hs for GHCJS packagesLeon Isenberg2017-03-29
| | | | Closes https://github.com/NixOS/nixpkgs/pull/23614.
* haskell: add justStaticExecutables combinatorDomen Kožar2017-03-07
|
* Merge pull request #22613 from shajra/fix/9871-3Domen Kožar2017-02-27
|\ | | | | Haskell infrastructure: fix #9871 (overrideCabal)
| * Haskell infrastructure: fix #9871 (overrideCabal)Sukant Hajra2017-02-09
| | | | | | | | | | | | | | | | | | | | | | | | 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.