Commit Graph

18 Commits

Author SHA1 Message Date
Ethan Carter Edwards
aa633dff01 guile*: cleanup, propagate guileImportsCheckHook
Removing coverageAnalysis was discussed on Matrix with xokdvium.
It isn't used anymore.

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-09-22 13:44:32 -04:00
Stefan Frijters
e6865860d1 guile: move LDFLAGS into env for structuredAttrs 2026-01-07 21:36:50 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Reno Dakota
5587af11e3 Revert "guile: workaround for libunistring / darwin libiconv"
This reverts commit 76cca7e72c.

workaround is unneeded with commit
0182edcf58
2024-12-13 15:40:33 -08:00
Reno Dakota
76cca7e72c guile: workaround for libunistring / darwin libiconv
guile will fail in the configure phase on darwin due to libunistring not
building with libiconv as libunistring 1.3 rejects darwin's libiconv
implementation. Work around this by using the gnu libiconv.

https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00375.html
2024-12-12 01:29:55 -08:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
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
Anderson Torres
6ec7cc3737 treewide: remove vrthra and lovek323 from meta.maintainers [no orphans]
Tracking issue: https://github.com/NixOS/nixpkgs/issues/290642

Inactive since at least 2017 and 2022 respectively.
2024-07-07 12:18:53 -03:00
Randy Eckenrode
9f8ad2a32a Revert "guile_2_2: fix build with clang 16 on x86_64-darwin"
This reverts commit 98bd3171dc.
2023-10-21 12:05:09 -04:00
Randy Eckenrode
98bd3171dc guile_2_2: fix build with clang 16 on x86_64-darwin
Guile 2.2 calls `__sincos`, which should be defined in `math.h`, but the
version of that header in the 10.12 SDK is very old (predating 10.12).
Until there is a version of that header available, use the 11.0 SDK to
build Guile.
2023-08-30 17:02:35 -04:00
Weijia Wang
2cceb70b13 guile: add effectiveVersion and site{Ccache,}Dir 2023-08-05 22:00:00 +02:00
Nick Cao
aec0480b20 guile_2_2: use correct version of guile for cross compilation 2022-11-21 15:56:57 +08:00
Ryan Burns
1e7b2e3dc5 Merge pull request #146871 from Grumbel/fix-guile-3.0
guile: fix non-existing libunistring include path
2022-10-14 20:27:10 -04:00
Ingo Ruhnke
2bd3cb67b7 guile: fix non-existing libunistring include path
The include/ directory for libunistring is inside the libunistring.dev
package, not libunistring, thus the .pc file was pointing to a
non-existing path.
2022-04-28 15:40:34 +02:00
Ben Siraphob
259fa13d53 treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
Sergei Trofimovich
4e9cfefb8a pkgsLLVM.guile, pkgsLLVM.guile_3_0: avoid -lgcc_s on clang, not just darwin
Otherwise pkgsLLVM.guile / pkgsLLVM.guile_3_0 fails early on linux.
2022-02-20 09:07:44 +00:00
AndersonTorres
3859aab0c6 guile 2.2: rename and reformat 2021-09-29 17:29:31 -03:00