Commit Graph
28 Commits
Author SHA1 Message Date
Guillaume Bouchard 5c11e174b2 pythonPackages.pyopengl: fix runtime shared library loading failure
This closes #76822.

pyopengl 3.1.4 introduced a new logic for shared library loading: it
tests a few combinations of library name and suffix (such as .so.X).

Our previous patch was just replacing the library name (e.g. 'glut') by
the full path to the nix store. This does not work anymore with pyopengl
3.1.4 new heuristic.

This commit just keep the behavior of pyopengl but adds the nix store
path to the list of tried paths.
2020-02-23 22:07:56 -08:00
Guillaume Bouchard 4fdea7312e bazel: bazelRC path set by a patch
In bazel source code change in the future, patch will fail and we'll
detect the regression sooner.
2019-12-05 11:45:36 +01:00
Guillaume Bouchard 1ce0375b2f bazel: close #70911 by conditionally loading system wide configuration
Some system may setup global informations (such as bazel cache location)
in /etc/bazel.bazelrc
2019-12-05 11:17:13 +01:00
Guillaume Bouchard 0cffa85d57 bazel: remove wrapProgram and move it to system configuration
This way, custom configurations are all at the same place. Also, user
may override these settings using the command line.
2019-12-05 11:16:47 +01:00
Guillaume Bouchard 5b9e350fd4 bazel: move configuration file to a proper nix store entry
Easier to read and maintain
2019-12-05 11:02:37 +01:00
Guillaume Bouchard c0a6fc4a56 bazel: add file and zip in the test runner env
`file` and `zip` are needed for some bazel test and by default the test
runner take these binaries from the current `PATH` which may not contain
them
2019-12-04 12:59:32 +01:00
Guillaume Bouchard 20752ba4f7 bazel: improve strict action env context
- Bazel strict action env set a default PATH to
`/bin/:/usr/bin:/usr/local/bin`. This was previously changed to disable
this behavior to improve hermeticity. However the previous change was
only removing `/bin:/usr/bin`, keeping `/usr/local/bin`, this commit
also remove this entry.
2019-12-04 12:59:32 +01:00
Guillaume Bouchard 4a2475c924 epsxe: fix link with openssl (#71920)
* epsxe: fix link with openssl

Epsxe is hardcoded to build with openssl-1.0 (using libcrypto.so.1.0.0),
but current nixpkgs contains openssl-1.1, which provides
libcrypto.so.1.1.

This patchs just uses the previous version of the library.

* epsxe: use autoPatchelfHook instead of manual rpath overriding

This simplifies the file AND generates failures at build time if a
needed dynamic library is not found during build time.
2019-10-25 19:51:37 +02:00
Guillaume Bouchard 7e5b2e74b7 bazel: 0.29 -> 1.0 2019-10-11 21:41:23 +02:00
Guillaume Bouchard 50d128e16c haskellPackages.MemoTrie: remove dontCheck and dontHaddock overrides.
It works fine with (at least):
  - haskellPackages.MemoTrie
  - haskellPackages.ghc844.MemoTrie
2019-09-25 15:28:40 +02:00
Guillaume Bouchard efb4f4817a haskellPackages.PyF: remove broken status
PyF builds perfectly with `haskellPackages.PyF`
2019-09-25 15:28:40 +02:00
Guillaume Bouchard 67904dccbb bazel: 0.28.1 -> 0.29.0
- Upgraded dependencies
  - dependencies script upgraded to take into account new WORKSPACE
    rules
- Tests now depends on the `distdir`

Runtime bazel now also depends on the `distdir` setting which appears
in the global configuration file. This increases the bazel closure
size by 85 MO for stuffs which can normally be downloaded at runtime
by bazel. However, any invocation of `buildBazelPackage` (such as in
`bazel-watcher`) may fail in nix sandbox if theses files are not
available at runtime.

If this overhead is too important, we may later evolve to a finer
grained solution, where buildBazelPackage declares the list of
necessary dependencies.
2019-09-03 13:12:53 +02:00
Guillaume Bouchard 950da6263f bazel: 0.27.0 -> 0.28.0 2019-07-16 17:43:18 +02:00
Guillaume Bouchard d363da72cc bazel: Use --distdir for prefetched repositories
--distdir is now used in the installCheckPhase for prefetched
  repositories. That's simpler, more robust and easier to extend in
  the future.

Note that `name` argument of fetchurl was removed because it changed
the basename of the generated file and bazel uses this basename for
its cache behavior.
2019-07-12 22:32:01 +02:00
Guillaume Bouchard d086d45952 Fix source url for java tools on darwin 2019-06-24 11:41:43 +02:00
Guillaume Bouchard 27d4ce7ce0 bazel: Full switch to python3 2019-06-22 21:46:50 +02:00
Guillaume Bouchard 7fed6eabcf bazel: restore installCheckPhase
All the dependencies of this phase are prefetched and provided to the
bazel environment using --override_repository.
2019-06-22 21:46:50 +02:00
Guillaume Bouchard ba327a54b6 bazel: 0.26.1 -> 0.27.0
- Fixs for newly introduced bin/bash hardcoded reference
- Bazel now references `remote_java_tools_xxx` which contains prebuilt
  binaries. We prefetch them, fix them, and force bazel to use the
  fixed repository.

It also closes #63096
2019-06-22 21:46:50 +02:00
Guillaume Bouchard a7c774300b ghc-8.6.3: use system libffi
Use the system `libffi` (`ie` nixpkgs's) instead of built-in libffi
from ghc source tree.

This will prevent library conflict when ghc dynamically links haskell
packages (linked with ghc built-in libffi) and any external library
which uses nixpkgs `libffi`.

Closes https://github.com/NixOS/nixpkgs/pull/55208.
2019-02-12 13:40:59 +01:00
Guillaume Bouchard af11b2538d haskellPackages.generic-lens: update configuration-common.nix
- `patches` is no longer necessary
- `dontCheck` added because tests are failing for a minor issue
2019-02-10 01:36:38 +01:00
Guillaume Bouchard 3652cfec28 haskellPackages.primesieve: fix build
Temporaries changes in `configuration-common.nix` to fix the cabal
file which does not specify that the haskell library depends on the
C++ shared library. Pull request had been sent upstream.
2019-02-04 13:50:52 +01:00
Guillaume Bouchard 9f0ee6c606 primesieve: init at 7.3 2019-02-04 13:03:50 +01:00
Guillaume Bouchard 4043e157f5 qml-box2d: 2018-03-16 -> 2018-04-06 2018-12-20 16:08:53 +01:00
Guillaume Bouchard 2141b4add1 gcompris: 0.91 -> 0.95 2018-12-20 14:46:41 +01:00
Guillaume Bouchard d5c931992d Fix english in stdenv.xml 2018-12-13 17:23:51 +01:00
Guillaume Bouchard 62882d8cd2 haskellSrc2nix: disallow substitutes
Fix #49818. See the bug for more details.

The work done by haskellSrc2nix is usually lightweight, but needs to
be done each time a cabal file change. This triggers unexpected
network activity for a cache query which results most of the time on a
cache miss.

By disabling substitutes we:

- avoid the, mostly useless, binary cache query
- avoid unexpected network failure when users change a cabal file and
  try to rebuild without connectivity.
2018-11-22 16:24:13 +01:00
Guillaume Bouchard 55a82ffcd3 ghc: fix typo in 8.6.1 compiler name 2018-10-24 21:29:15 +02:00
Guillaume Bouchard b5546faf29 pythonPackages.pycrc: init at 1.21 2018-08-20 11:39:32 +02:00