Commit Graph

17 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
Mauricio Collares
2701d140df treewide: fetch sage patches from github instead of now-defunct trac 2023-09-02 08:46:11 -07:00
Kasper Gałkowski
6817b72ca3 lisp-modules: set maintainers to the lisp team 2023-04-05 20:52:27 +02: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
Artturin
c6568adb00 treewide: makeWrapper buildInputs to nativeBuildInputs
most found with https://github.com/siraben/nix-lint
2022-08-16 13:14:19 +03:00
Ben Siraphob
21faf9fc29
treewide: move autoconf, automake to nativeBuildInputs 2022-03-30 20:17:24 -05:00
Felix Buehler
f6d7348cee ecl: refactor 2021-12-21 12:08:34 +01:00
Sandro Jäckel
047fea5392
ecl: format, cleanup 2021-08-10 10:32:45 +02:00
sternenseemann
18a4e4f94f ecl, ecl_16_1_2: make sure ar is in PATH 2021-08-09 03:01:02 +02:00
sternenseemann
ccef83bd40 ecl_16_1_2: fix linking of compiled programs
* Use --with-gmp-incdir and --with-gmp-libdir (like for the main ecl
  derivation), so ecl can figure out the flags to pass on its own.
  Remove NIX_LDFLAGS hack for gmp.

* Make sure ecl can find boehmgc when linking programs / libraries via
  NIX_LDFLAGS. Pass correct -I for boehmgc via NIX_CFLAGS_COMPILE since
  there's no --with-boehmgc-prefix configure flag to achieve the same
  result.

* Use correct suffixSalt for every flag. This makes NIX_CFLAGS_COMPILE
  work properly in the first place and should prevent the extra flags
  hacks leaking into other places in some edge cases.
2021-08-08 20:16:36 +02:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Timo Kaufmann
00c3761322 ecl: fix build with libffi 3.3
The build was broken by the recent libffi update
(53a04a2df0) because of this upstream
change:

ef76205647

I have changed the usage of FFI_SYSV as gentoo suggests:

https://wiki.gentoo.org/wiki/Libffi_3.3_porting_notes/FFI_SYSV

I'm not entirely sure if that is the right call here, but I haven't
noticed any regressions in my testing and its definitely better than a
broken build.

Upstream: https://gitlab.com/embeddable-common-lisp/ecl/issues/302
2019-12-16 23:02:26 +01:00
Vladimír Čunát
991c0e1618
treewide: mark packages as buildable on darwin (PR #45364)
vcunat amended the commit a bit; see the PR for details/discussion.
2019-09-15 10:50:08 +02:00
Timo Kaufmann
fca3ea0737 ecl_16_1_2: backport getcwd fix 2018-06-30 01:20:46 +02:00
Timo Kaufmann
63b8275709 ecl: Use boehmgc 2018-04-24 00:42:47 +02:00
Timo Kaufmann
83e5b55ed0 ecl_16_1_2: Adopt upstream error handling patch 2018-04-23 20:08:57 +02:00
Michael Raskin
95f3473e18 ecl_16_1_2: init at 16.1.2; reinstating for Maxima 2017-01-03 18:06:47 +01:00