Commit Graph

13563 Commits

Author SHA1 Message Date
github-actions[bot]
0c98bf3e85
Merge staging-next into staging 2023-01-05 00:02:56 +00:00
maralorn
3b1869aa95 Merge branch 'master' into haskell-updates 2023-01-05 00:18:05 +01:00
Jan Tojnar
b1a2373aa8
Merge pull request #208384 from BenediktBroich/blueprint-compiler
blueprint-compiler: refactor
2023-01-04 23:27:20 +01:00
github-actions[bot]
789ae2c93d
Merge staging-next into staging 2023-01-04 18:01:36 +00:00
John Ericson
b92fb601c2
Merge pull request #208947 from sternenseemann/ghc-head-js-backend-try-1
haskell.compiler.ghcHEAD: support JS backend
2023-01-04 09:12:10 -05:00
Yureka
0319a561ec pkgsMusl.gccgo: fix build 2023-01-04 13:21:20 +01:00
github-actions[bot]
20d97c0508
Merge master into haskell-updates 2023-01-04 00:12:52 +00:00
github-actions[bot]
e859576396
Merge staging-next into staging 2023-01-04 00:03:20 +00:00
sternenseemann
6392c21c1f haskell.compiler.ghcHEAD: allow building the JavaScript backend
This is now possible by building a cross compiler for js-unknown-ghjs
using `pkgsCross.ghcjs.buildPackages.haskell.compiler.ghcHEAD`.

To allow this, the following things needed to be done:

* Disable dependencies that wouldn't work:

  - Don't pull in ncurses for terminfo
  - Don't pull in libffi
  - Don't pull in libiconv
  - Don't enable the LLVM backend
  - Enable gmp-less native-bignum backend

* Use emscripten instead of a C compiler. The way this works is inspired
  by emscriptenPackages, but avoids the following flaws:

  - Instead of using a custom configurePhase, just set
    `configureScript = "emconfigure ./configure";` which is much simpler.

  - Create writable EM_CACHE before configuring, as configure scripts
    want to compile test programs.

  Additionally, we need to disable the targetCC check, as it is not
  applicable with emscripten which never appears as part of stdenv.

* Use generic $configureScript in installPhase to be able to work with
  our emconfigure trick.

Note that the corresponding Haskell package set does not work yet. Cabal
doesn't seem to like GHC 9.7 yet and the generic-builder is clueless
about the JS backend.
2023-01-04 00:02:29 +01:00
sternenseemann
b711b52d15 jre, temurin-bin: fix eval in pkgsCross.ghcjs.buildPackages
Since #200337 gobject-introspection propagates itself via
depsTargetTargetPropagated, so one doesn't have to add it to every
derivation twice. The problem is that gobject-introspection still is in
a lot of buildInputs and will thus propagate itself again for target,
breaking evaluation unnecessarily if gobject-introspection doesn't
evaluate on whatever the target platform turns out to be.

temurin-bin and openjdk19 caused such a situation via gtk3 which GHC's
JavaScript backend depends on. To fix evaluation of those packages in
pkgsCross.ghcjs.buildPackages, we'll just disable the features pulling
in gtk3 until this is fixed properly.
2023-01-04 00:02:29 +01:00
sternenseemann
de8e0bfaa7 haskell.compiler: also check targetPlatform for gmp compat
gmp is part of buildInputs _and_ depsTargetTarget, so we need to check
the host and target platform to be correct. In practice this doesn't
change much though, as gmp.meta.platforms is _quite_ liberal.
2023-01-04 00:01:25 +01:00
sternenseemann
12af3ee5c5 emscripten: fake cc-wrapper-esque passthru attrs for GHC
For the GHC JavaScript backend, we'll use emscripten in place of
targetCC. To avoid having too much special logic for this, we'll make
the emscripten derivation look like the result of wrapCC as far as GHC
is concerned, i.e. we need targetPrefix and bintools.

For bintools, we'll just reexpose emscripten, as it has emar, the only
relevant bintools. That the other ones are missing doesn't matter in
practice, as the GHC build system won't attempt to use them.

targetPrefix can immediately be (ab)used to make sure GHC will correctly
call emcc etc. instead of plain cc.
2023-01-03 22:45:05 +01:00
Robert Scott
11e43555d5
Merge pull request #208716 from wegank/osl-aarch64-linux
osl: unbreak on aarch64-linux
2023-01-03 21:32:17 +00:00
github-actions[bot]
e076f677a1
Merge staging-next into staging 2023-01-03 18:01:45 +00:00
Mario Rodas
2ccd8932c1
Merge pull request #208854 from NickCao/julia-typo
julia_18: fix typo in JULIA_CPU_TARGET
2023-01-03 09:39:58 -05:00
sternenseemann
3665c429d3 haskell.compiler.ghcHEAD: 9.5.20220921 -> 9.7.20221224
Finally building a cross compiler using hadrian is possible, but there
are some outstanding issues regarding external libraries in the package
db which causes issues with ghc-bignum.
2023-01-03 15:23:53 +01:00
markuskowa
e00766c170
Merge pull request #208397 from Munksgaard/ispc-platforms
ispc: Add aarch64-linux and aarch64-darwin platforms
2023-01-03 14:47:31 +01:00
Pavol Rusnak
73f6ea95a2
Merge pull request #208857 from prtzl/gcc-arm-embedded
gcc-arm-embedded-12: init at 12.2.rel1
2023-01-03 13:10:45 +01:00
github-actions[bot]
e2839320bb
Merge staging-next into staging 2023-01-03 12:01:44 +00:00
prtzl
18d4d8224a gcc-arm-embedded-12: init at 12.2.rel1 2023-01-03 10:08:13 +01:00
Nick Cao
9e949edd9a
julia_18: fix typo in JULIA_CPU_TARGET 2023-01-03 16:48:16 +08:00
Philip Munksgaard
7b0c8a8318
ispc: Add aarch64-linux and aarch64-darwin platforms
According to https://ispc.github.io/ispc.html#selecting-the-compilation-target,
aarch64 is supported.
2023-01-03 09:35:25 +01:00
Dmitry Kalinkin
de3d57875d llvmPackages_9.lldb: fix darwin build
Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2023-01-03 01:36:48 -05:00
Dmitry Kalinkin
a8f6f12879 llvmPackages_8.lldb: fix darwin build
Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2023-01-03 01:36:48 -05:00
github-actions[bot]
586c2d4f97
Merge staging-next into staging 2023-01-03 06:01:57 +00:00
Anderson Torres
64d2ee501c
Merge pull request #208794 from wegank/tcc-darwin
tinycc: unbreak on x86_64-darwin
2023-01-02 22:19:27 -03:00
github-actions[bot]
03e830eb69
Merge staging-next into staging 2023-01-03 00:02:53 +00:00
Weijia Wang
9144942aa3 tinycc: unbreak on x86_64-darwin 2023-01-02 23:33:08 +01:00
Thiago Kenji Okada
dccf78e57a
Merge pull request #206756 from Ralith/shaderc-2022.4
shaderc: 2021.0 -> 2022.4
2023-01-02 21:26:38 +00:00
Robert Scott
c50e348679
Merge pull request #208489 from r-ryantm/auto-update/orc
orc: 0.4.32 -> 0.4.33
2023-01-02 16:04:47 +00:00
Weijia Wang
15ef0c2a76 osl: unbreak on aarch64-linux 2023-01-02 07:46:37 +01:00
github-actions[bot]
051d49badb
Merge staging-next into staging 2023-01-02 06:02:21 +00:00
Alyssa Ross
ad049483af edk2: don't hardcode OSes in meta.platforms
There's nothing about edk2 specific to the host OS, and it builds fine
with e.g. a NetBSD toolchain, so we should only restrict
meta.platforms by architecture, not by OS.
2023-01-02 03:58:58 +00:00
zowoq
3cc18bf489 go_1_20: init at 1.20rc1 2023-01-02 12:18:07 +10:00
Jan Tojnar
5810109b42 Merge branch 'staging-next' into staging
- readline6 attribute removed from all-packages.nix in d879125d61
- readline attribute was bumped to readline82 in 50adabdd60
2023-01-02 03:04:32 +01:00
Robert Scott
1e1b7c7765 orc: add some key reverse-dependencies to passthru.tests 2023-01-01 14:01:53 +00:00
Benjamin Saunders
b03bf9b29e shaderc: 2021.0 -> 2022.4 2022-12-31 15:41:58 -08:00
R. Ryantm
05c8b62e27 orc: 0.4.32 -> 0.4.33 2022-12-31 12:14:27 +00:00
Benedikt Broich
c558d50b45
blueprint-compiler: refactor
Some improvements discussed [here](https://github.com/NixOS/nixpkgs/pull/208157) after the first merge.
2022-12-31 00:20:06 +01:00
sternenseemann
0c761f74f0 haskell.compiler.ghcjs: allow building with transformers-compat-0.7
ghcjs's dependency optparse-applicative 0.15.1.0 restricts
transformers-compat to < 0.7 which is unnecessary.
2022-12-30 12:47:20 +01:00
sternenseemann
00ca09719c haskell.compiler.ghcjs: drop stale override for webdriver
webdriver-0.10.0.0 incorporated the changes we are interested.
2022-12-30 12:46:53 +01:00
github-actions[bot]
70598b7796
Merge master into haskell-updates 2022-12-30 00:12:38 +00:00
Sandro
7592c5142f
Merge pull request #208157 from BenediktBroich/blueprint-compiler
Closes https://github.com/NixOS/nixpkgs/pull/190223
2022-12-29 16:22:35 +01:00
sternenseemann
9e8a483770 haskell.compiler.ghc94: 9.4.2 -> 9.4.4
https://www.haskell.org/ghc/blog/20221103-ghc-9.4.3-released.html
https://www.haskell.org/ghc/blog/20221224-ghc-9.4.4-released.html
2022-12-29 13:49:47 +01:00
sternenseemann
fb32148a96 carp: patch for GHC 9.2 and Stackage LTS-20 2022-12-29 13:35:15 +01:00
Benedikt Broich
d34338eaf0
blueprint-compiler: 0.2.0 -> 0.6.0 2022-12-29 09:03:42 +01:00
github-actions[bot]
aaaeebad7a
Merge staging-next into staging 2022-12-28 18:01:50 +00:00
Vincent Laporte
9aa77715b7
Merge pull request #205005 from ulrikstrid/ligo--0_57
ligo: 0.55.0 -> 0.58.0
2022-12-28 14:11:43 +01:00
Sergei Trofimovich
092d57c076 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
    pkgs/development/tools/language-servers/ansible-language-server/default.nix
2022-12-28 09:35:37 +00:00
Atemu
3eec3c8fed buildRustPackage: remove git from nativeBuildInputs
Having git in nativeBuildInputs causes thousands of rebuilds when git is touched
because every derivation that somehow transiently depends on a rust package will
change. See https://github.com/NixOS/nixpkgs/pull/205682 for instance.

AFAICT git is unused. Only the fetcher needs git which it has already.

Fixes https://github.com/NixOS/nixpkgs/issues/205804
2022-12-27 18:37:21 +10:00