Commit graph

23 commits

Author SHA1 Message Date
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Silvan Mosberger b31a8f7a90
buildStackProject: Set __noChroot to make it fail without sandbox
Building such a derivation will result in

  error: derivation '/nix/store/nk4wms3hk4mp9lc86k30vc8w44fcq0rj-foo.drv' has '__noChroot' set, but that's not allowed when 'sandbox' is 'true'

when attempting to build it without --option sandbox false
2019-11-14 01:32:04 +01:00
Kirill Elagin 18a95439ec haskell.buildStackProject: Pass nativeBuildInputs 2019-08-11 14:21:13 +03:00
Matthew Bauer 0dabacae00 haskell.buildStackProject: use setup hook
This makes things easier and hopefully fixes the arg too long issue.

Fixes #49206.
2019-01-07 21:28:53 -06:00
Urban Skudnik 01a8fa1a72 Add support for user-extensible shellHook to buildStackProject
buildStackProject is overridding shell hook and doesn't append
user-specified shellHook to it, resulting in user's shellHook
never executing.
2018-08-07 14:28:18 +02:00
Will Dietz da5383006d haskell-modules: only include glibc locales when using glibc
Fixes #43665.
Hopefully. :)
2018-07-17 08:44:17 -05:00
Matthew Justin Bauer 1682353805
generic-stack-builder: also support nix-build
We need to add the STACK_IN_NIX_EXTRA_ARGS hook in configurePhase also to ensure we get the right args when calling ```nix-build``` (as opposed to nix-shell).
2018-05-09 18:12:13 -05:00
Matthew Bauer 527abe59cf generic-stack-builder: attempt to add propagation
Fixes #40039

This adds a shellHook to handle propagated dependencies like that seen
in #40039 where gpgme needed libgpg-error.
2018-05-09 15:46:48 -05:00
Will Fancher daf78689d4 Fix buildStackProject in nix-build 2017-11-01 16:01:39 +01:00
Domen Kožar 72f530ba33
Fix #26441 second try: avoid infinite recursion 2017-06-15 10:22:25 +02:00
Domen Kožar 7c455b5b7e
Revert "Fix #26441: avoid infinite recursion"
This reverts commit 9cad7076d1.

See 9cad7076d1 (commitcomment-22548331)
2017-06-15 10:19:29 +02:00
Domen Kožar 9cad7076d1
Fix #26441: avoid infinite recursion 2017-06-14 10:33:37 +02:00
Niklas Hambüchen 139b1377d4 generic Haskell builder: Don't call stack setup.
`stack setup` should not be called inside `nix-build` because
that makes stack download a GHC instead of using nix's one
(the one provided `generic-stack-builder.nix` as the `ghc` argument),
which will not work.
Further evidence for this is that the `stack --nix` support
intentionally uses `--system-ghc` for the same purpose.
2017-04-26 20:20:36 +02:00
Domen Kožar 0772e27bfd
haskell.lib.buildStackProject: fix #22386 2017-02-03 10:07:10 +01:00
Domen Kožar f4e67389cc
buildStackProject: set GIT_SSL_CAINFO and LANG 2017-02-01 10:45:37 +01:00
Peter Simons d01416ba50 Merge pull request #17997 from teozkr/fix/buildstackproject-stackroot
buildStackProject: Fix missing STACK_ROOT causing build errors
2016-09-10 22:23:02 +02:00
YPares 9ddcd5d456 Haskell stack nix shell: using lib.getLib/Dev now 2016-08-29 16:15:09 +02:00
Teo Klestrup Röijezon f35d23b16d buildStackProject: Fix missing STACK_ROOT causing build errors 2016-08-25 22:16:06 +02:00
YPares 3868cad832 haskell: generic-stack-builder sets an env var
generic-stack-builder was not setting STACK_PLATFORM_VARIANT="nix".
This is required by stack when handling its haskell packages database
snapshot. Stack must keep separated packages built with its own GHC
and those built with GHC from Nixpkgs.
2016-06-15 17:08:41 +02:00
Mathieu Boespflug 70bc97b731 haskell.lib.buildStackProject: fix treatment of LD_LIBRARY_PATH.
Don't make LD_LIBRARY_PATH pick up cwd when original string is empty,
due to colon terminated search path.
2016-06-13 00:55:34 +02:00
Mathieu Boespflug 292a8892a0 haskell.lib.buildStackProject: allow passing in a custom GHC version.
Previously, the user could only compile using the default version of
GHC in Nixpkgs. Now this can be changed by setting the `ghc` attribute
appropriately.
2016-06-13 00:55:33 +02:00
Peter Simons 798a14d22c haskell-generic-stack-builder: strip trailing whitespace 2016-03-04 22:18:08 +01:00
Mathieu Boespflug ff9cba94f6 haskell: Rename file where buildStackProject is defined. 2016-03-04 21:18:14 +01:00
Renamed from pkgs/build-support/haskell/stack.nix (Browse further)