Commit Graph

40 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
annalee
e6cb2ba900 terra: LLVM16 pin
terra doesn't have a release which supports LLVM17 so pin to LLVM16
2024-05-11 10:26:52 -05:00
annalee
bb208b22ab
terra: llvmPackages_11 -> llvmPackages
remove reference to llvmPackages_11 in preparation to drop LLVM11
Disable on linux aarch64 as it can not use llvm above 11
2024-02-15 05:00:43 +00:00
Elliott Slaughter
525656f7a2 terra: 1.0.6 -> 1.1.0 2023-05-05 14:07:08 -07:00
Rick van Schijndel
9833d56c24 treewide: mark packages broken that never built on PLATFORM
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.

I manually audited the results and removed some results that were not valid.

Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.

Some observations:

- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
  - gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
  platforms that are not x86_64-linux
2022-12-13 21:40:12 +01:00
Elliott Slaughter
3944702571 terra: 1.0.5 -> 1.0.6 2022-09-07 21:31:12 -07:00
Elliott Slaughter
4376b54e76
terra: 1.0.4 -> 1.0.5 (#187065)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-08-21 03:10:19 +02:00
Elliott Slaughter
3593e17c89 terra: 1.0.0-beta5 -> 1.0.4 2022-07-08 16:25:48 -07:00
Elliott Slaughter
4d96447ebf terra: 1.0.0-beta3 -> 1.0.0-beta5
https://github.com/terralang/terra/releases/tag/release-1.0.0-beta5
https://github.com/terralang/terra/releases/tag/release-1.0.0-beta4
2022-06-07 09:53:06 -07:00
Rick van Schijndel
0b45cae8a3
treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
Ben Siraphob
2f94991628 treewide: fix redirected URLs
Using the script in maintainers/scripts/update-redirected-urls.sh
2021-08-01 00:01:50 +07:00
Ben Siraphob
1e2484a27c treewide: remove unnecessary enableParallelBuilding when using cmake 2021-07-20 10:32:58 +07:00
Sable Seyler
c49d9adc38
terra: fix LuaJIT fetch per @jnetod in #125896 2021-06-17 10:54:22 -07:00
Sable Seyler
da575846cb
terra: update to support new override 2021-06-17 10:53:14 -07:00
Sable Seyler
999e5d9cdf
terra: add override for CLANG_RESOURCE_DIR 2021-06-13 01:22:37 -07:00
Sable Seyler
0a44bbbb3d
terra: add toggle argument for CUDA support
Terra can be built with CUDA support, and this commit adds a toggle to
the arguments, `enableCUDA`, for enabling it.
2021-06-05 19:11:02 -07:00
Sable Seyler
59a07bc60f
terra: add seylerius as a maintainer 2021-06-05 19:06:46 -07:00
Sable Seyler
da04b1f00f
terra: update to use LLVM's split derivations
A patch has been added to inject environment variables into the CMake
test runner, the `INCLUDE_PATH` variable has been specified, and the
merged LLVM derivation has been updated to refer to the split outputs.
2021-06-05 19:01:51 -07:00
J. Neto
6cf3ec0947
terra: 1.0.0pre1175_ef6a75f -> 1.0.0-beta3
Contains the combined single-commit work by both @jnetod and myself
from NixOS/nixpkgs#122665. Brings the build up to LLVM 10, switches to
`symlinkJoin` for putting Clang where the CMake build expects it, and
updates to a fresh update of Terra that works around a few LLVM bugs.
2021-06-05 18:19:23 -07:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Vladimír Čunát
aad639d8f1
terra: fix evaluation on darwin 2019-09-24 08:25:44 +02:00
Austin Seipp
d5e1d57cee
terra: include libc headers by default, run tests
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-19 00:26:48 -05:00
Austin Seipp
52d3655c3d
terra: 1.0.0-beta1 -> 1.0.0pre1175_ef6a75f
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 22:13:18 -05:00
Austin Seipp
3288d3670f
terra: patch to use NIX_CFLAGS_COMPILE for includes
Terra heavily depends on its ability to interface with C APIs, but
without scanning NIX_CFLAGS_COMPILE, it's awkward and annoying to set up
imports correctly (by scanning and adding the flags yourself) in every
single project.

Luckily most of the Clang initialization is hidden away, but the Lua
code for the Terra library handles all the high-level stuff, so we patch
it in there.

This allows simple examples like:

    C = terralib.includec("zlib.h")

to work instantly, provided `zlib` is a Nix dependency.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 21:45:34 -05:00
Austin Seipp
5cc70a7b6b
terra: touchups
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-09-18 21:44:55 -05:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Mario Rodas
1b95ef168b
terra: fix darwin build 2019-05-20 22:12:13 -05:00
Ryan Mulligan
6e5caa3f8a
Merge pull request #52624 from alesguzik/update-terra
terra: 2016-06-09 -> 1.0.0-beta1
2019-02-28 19:22:10 -08:00
Jörg Thalheim
1b146a8c6f
treewide: remove paxutils from stdenv
More then one year ago we removed grsecurity kernels from nixpkgs:
https://github.com/NixOS/nixpkgs/pull/25277

This removes now also paxutils from stdenv.
2018-12-22 12:55:05 +01:00
Ales Huzik
8e4651f917 terra: 2016-06-09 -> 1.0.0-beta1 2018-12-21 22:57:16 +11:00
Tuomas Tynkkynen
1ed1ed210a terra: Broken on i686 (and Darwin)
Never built successfully:

http://hydra.nixos.org/build/39402139
http://hydra.nixos.org/build/39393534
2016-09-03 03:24:25 +03:00
Tuomas Tynkkynen
a17216af4c treewide: Shuffle outputs
Make either 'bin' or 'out' the first output.
2016-08-29 14:49:51 +03:00
Joachim Fasting
01804364d2
terra: set meta.platforms
Upstream claims MacOS, Linux, and Windows as supported platforms; set to unix
for now.
2016-06-23 23:28:19 +02:00
Joachim Fasting
cd96d0c7d7
terra: specify tool paths via Makefile.inc
Judging by the build output, which doesn't find what it's looking for
anyway.
2016-06-23 01:31:23 +02:00
Joachim Fasting
9983937d1a
terra: apply PaX markings
For grsecurity support
2016-06-23 01:31:13 +02:00
William Casarin
a34ec65659 terra: 2016-01-06 -> 2016-06-09
* llvmPackages_35 -> llvmPackages_38
* static llvm no longer needed
* multiple outputs, this generates the following results:
    - out/lib/terra.so
    - bin/bin/terra
    - dev/include/terra/*.h
    - static/lib/libterra.a

Contributed with help from @joachifm
2016-06-16 20:02:49 -07:00
William Casarin
e66965fdee terra: init at git-2016-01-06 2016-01-17 17:30:01 -08:00