about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/lib
AgeCommit message (Collapse)AuthorFilesLines
2024-02-26haskellPackages: add dontCheckIf helperWolfgang Walther2-0/+10
Using this helper will prevent introducing problematic doCheck = condition overrides, which accidentally re-enable previously disabled tests.
2024-02-08haskellPackages.mkDerivation: remove version checks for unsupported GHCWolfgang Walther1-1/+1
Most of the version checks for GHC can be removed, because they target versions which are not part of nixpkgs anymore.
2023-12-14haskell.lib.compose.triggerRebuild: don't discard old postUnpacksternenseemann1-1/+6
2023-11-07haskell.lib.packagesFromDirectory: only `.nix` filesGabriella Gonzalez1-1/+3
This changes `haskell.lib.packagesFromDirectory` to ignore non-Nix files so that it doesn't attempt to run `callPackage` on, say, a `.md` file in the same directory.
2023-02-04haskell.packages.ghc94.gtk2hs-buildtools: gtk2hs setup hook broken for ghc-9.4.4Peter Simons1-1/+1
See https://github.com/gtk2hs/gtk2hs/issues/323 for details.
2023-02-04haskell.packages.ghc94.X11-xft: automate workaround for cabal#8455sternenseemann1-0/+40
The current workaround for the regression is propagating the runtime dependency closure (technically only Requires.private in the pkg-config files). This can easily be done automatically by mimicking how e.g. pkgsStatic converts buildInputs to propagatedBuildInputs. This is extracted into a helper function, __CabalEagerPkgConfigWorkaround, which can be applied to any package easily.
2023-01-14doc/haskell: (re-)init haskell manual sectionsternenseemann1-1/+2
This restarts a Haskell section in the nixpkgs manual. The content presented here has been written from scratch, although some parts of it take inspiration from the existing haskell4nix documentation. It is by no means complete, the idea is mostly to get the ball rolling in some way. Upcoming tasks are hinted at in the comments in the documentation file.
2022-12-17treewide: fix typosfigsoda2-2/+2
2022-10-07haskell.lib.compose.addOptparseApplicativeCompletionScripts: removesternenseemann2-5/+3
This function was deprecated when it was first added to haskell.lib.compose, so we can probably safely drop it.
2022-10-07haskell: support cross in generateOptparseApplicativeCompletionssternenseemann1-26/+19
Deprecate haskell.lib{,.compose}.generateOptparseApplicativeCompletion* in favor of the newly added haskell.packages.*.generateOptparseApplicativeCompletions (plural!) which takes into account whether we are cross-compiling or not. If we are, generating completions is disabled, since we can't execute software built for a different platform. The move is necessary, so we can receive the /same/ stdenv as the package we are overriding in order to accurately check whether we can execute produced binaries. Resolves #174040. Resolves #49648.
2022-06-28Merge pull request #174176 from hercules-ci/buildFromCabalSdistRobert Hensing1-0/+3
haskellPackages: Add buildFromCabalSdist (faster, tested)
2022-06-19haskell.lib: make doDistribute respect badPlatformssternenseemann1-1/+2
release-lib.nix's packagePlatforms will (understandably) take hydraPlatforms at face value, so we need to make sure that we don't slip anything actually unsupported in there.
2022-05-23haskellPackages: Add buildFromCabalSdist (faster, tested)Robert Hensing1-0/+3
2022-01-22haskell.lib: move lib.nix into same directory as compose.nixsternenseemann1-0/+355
2021-12-02Merge remote-tracking branch 'origin/staging-next' into stagingJonathan Ringer1-1/+4
Conflicts: pkgs/development/python-modules/django-rq/default.nix
2021-12-02haskell.lib{,.compose}.doDistribute: default to lib.platforms.allsternenseemann1-1/+4
This reflects the default value set in generic-builder.nix, following the reasoning that GHC can cross-compile and we assume that packages are generally portable.
2021-11-27haskell-modules/lib: make postFixup more resilientProfpatsch1-1/+5
1. Putting the string on one line (instead of using a multiline string) means it is not ended with \n, which means if somebody wants to append more lines, they have to start it with \n or it will get concatenated to the `postFixup` here, so add \n. 2. Previously, ignoring `drv.postFixup` would throw away any `postFixup`s set in `drv`, which is not something we want. The extra empty line is a cute trick to prevent concatenating the code with any previous `postFixup` that doesn’t end in \n.
2021-11-07haskell: switch from haskell.lib to haskell.lib.composeEllie Hermaszewska1-3/+3
2021-11-07haskell.lib.compose: initEllie Hermaszewska1-0/+466
No changes in derivations for pkgs.haskellPackages