Commit Graph

205 Commits

Author SHA1 Message Date
fliiiix
6faaa8d2fb guile: use pcre2grep for update version 2026-07-27 22:15:17 +02:00
Dmitry Bogatov
070d5b6ad7 pkgsStatic.guile: fix build
Drop cross-compilation patch that was included upstream.
2026-07-23 06:00:00 -04:00
n0099
fad1bd870d guile: set meta.mainProgram 2026-05-13 15:25:42 +02:00
Stefan Frijters
e6865860d1 guile: move LDFLAGS into env for structuredAttrs 2026-01-07 21:36:50 +01:00
nixpkgs-ci[bot]
9d15e532a5 Merge staging-next into staging 2026-01-04 18:06:30 +00:00
7c6f434c
65c647a093 guile: 3.0.10 -> 3.0.11 (#468010) 2026-01-03 22:18:07 +00:00
7c6f434c
885e8eb4d9 guile_1_8, guile_2_0: set std=gnu17 to fix build with gcc15 2026-01-03 23:15:22 +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
R. Ryantm
7021a565aa guile: 3.0.10 -> 3.0.11 2025-12-05 05:16:00 +00:00
ghpzin
cda6074886 guile: fix build with gcc15
- add "-std=gnu17" to `env.NIX_CFLAGS_COMPILE`

Fixes build failure with gcc15:
```
backtrace.c: In function 'scm_init_backtrace':
backtrace.c:329:51: error: passing argument 5 of 'scm_c_define_gsubr'
from incompatible pointer type [-Wincompatible-pointer-types]
329 |   scm_c_define_gsubr ("print-exception", 4, 0, 0, boot_print_exception);
    |                                                   ^~~~~~~~~~~~~~~~~~~~
    |                                                   |
    |                                                   struct scm_unused_struct * (*)(struct scm_unused_struct *,
struct scm_unused_struct *, struct scm_unused_struct *, struct scm_unused_struct *)
In file included from backtrace.c:41:
gsubr.h:72:71: note: expected 'scm_t_subr'
{aka 'struct scm_unused_struct * (*)(void)'} but argument is of type
'struct scm_unused_struct * (*)(struct scm_unused_struct *, struct
scm_unused_struct *, struct scm_unused_struct *, struct scm_unused_struct *)'
   72 |                                 int req, int opt, int rst, scm_t_subr fcn);
      |                                                            ~~~~~~~~~~~^~~
backtrace.c:66:1: note: 'boot_print_exception' declared here
   66 | boot_print_exception (SCM port, SCM frame, SCM key, SCM args)
      | ^~~~~~~~~~~~~~~~~~~~
```
2025-09-29 20:01:27 +03:00
Sergei Trofimovich
4cbb6bd6cb guile: disable stripping on linux as well (binutils-2.45 compat)
Without the change `weechat` fails to build on `binutils-2.45` as:

    Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "missing DT_GUILE_ENTRY" () #f)Subprocess aborted

This happens because `guile-3` uses `ELF` format to store guile bytecode
and `strip` sometimes destroys `guile`-specific details in `ELF` files.
2025-08-30 21:30:23 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Stefan Frijters
a1fd80fb9b guile: fix cross
The upstream patch fixes an include error.

Adding autoreconfHook fixes

       > make -C libguile scmconfig.h
       > make[1]: Entering directory '/build/guile-3.0.10/libguile'
       >  cd .. && /nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/bash /build/guile-3.0.10/build-aux/missing automake-1.16 --gnu libguile/Makefile
       > /build/guile-3.0.10/build-aux/missing: line 81: automake-1.16: command not found
       > WARNING: 'automake-1.16' is missing on your system.
       >          You should only need it if you modified 'Makefile.am' or
       >          'configure.ac' or m4 files included by 'configure.ac'.
       >          The 'automake' program is part of the GNU Automake package:
       >          <https://www.gnu.org/software/automake>
       >          It also requires GNU Autoconf, GNU m4 and Perl in order to run:
       >          <https://www.gnu.org/software/autoconf>
       >          <https://www.gnu.org/software/m4/>
       >          <https://www.perl.org/>
       > make[1]: *** [Makefile:2734: Makefile.in] Error 127
       > make[1]: Leaving directory '/build/guile-3.0.10/libguile'
       > make: *** [Makefile:2615: libguile/scmconfig.h] Error 2

which occurs because we patch a Makefile.am .
2025-06-14 15:47:08 +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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08: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
Sergei Trofimovich
c44b90918c guile: 3.0.9 -> 3.0.10
Changes: https://www.gnu.org/software/guile/news/gnu-guile-3010-released.html
2024-06-30 06:49:32 +01:00
Weijia Wang
6a9a16276e Merge pull request #272224 from wegank/guile-3-0-maintainers
guile_3_0: remove inactive maintainers
2023-12-12 15:24:49 +01:00
Weijia Wang
3a6b8cd838 guile_3_0: remove inactive maintainers 2023-12-05 10:00:26 +01:00
Daphne Preston-Kendal
6ab8c1f6b3 guile: Fix posix_spawn use on Darwin, Hurd, and other platforms
This backports a patch from current Guile HEAD which fixes a
platform-specific bug causing all subprocess spawns to fail on (at
least) Darwin and GNU Hurd, and possibly other platforms as well.

Upstream patch:
<https://git.savannah.gnu.org/cgit/guix.git/plain/gnu/packages/patches/guile-hurd-posix-spawn.patch>

Note that despite the patch name and comments, other OSes than Hurd
are affected as well.

Thanks to @civodul for the hint that this patch would fix the problem.
2023-12-04 15:23:01 +01:00
Weijia Wang
44f16f33cc Merge branch 'master' into staging-next 2023-11-04 01:43:45 +01:00
IogaMaster
b4829c8372 guile: enable jit on aarch64-darwin 2023-11-03 13:50:02 -06:00
Weijia Wang
7b538a844c guile: do not strip on darwin 2023-10-28 17:08:22 +02:00
Randy Eckenrode
4b0d1daf51 Revert "guile_3_0: fix build with clang 16 on x86_64-darwin"
This reverts commit f8382587d9.
2023-10-21 12:05:10 -04: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
github-actions[bot]
176015fc74 Merge master into staging-next 2023-10-12 18:01:06 +00:00
Weijia Wang
8d584acc7e guile: enable crypt on linux 2023-10-11 23:12:49 +02:00
Randy Eckenrode
f8382587d9 guile_3_0: fix build with clang 16 on x86_64-darwin
Guile 3.0 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:36 -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
Gabriel Arazas
524c7521b0 guile: cleanup setup hook 2023-08-06 16:10:17 +02:00
Weijia Wang
2cceb70b13 guile: add effectiveVersion and site{Ccache,}Dir 2023-08-05 22:00:00 +02:00
Sandro
cc65857221 Merge pull request #188616 from foo-dogsquared/guile-3.0-add-extensions-search-path 2023-04-22 22:37:07 +02:00
Sergei Trofimovich
c82cfa8bc0 guile_3_0: 3.0.8 -> 3.0.9
Changes: https://www.gnu.org/software/guile/news/gnu-guile-309-released.html
2023-01-25 21:42:30 +00:00
Nick Cao
aec0480b20 guile_2_2: use correct version of guile for cross compilation 2022-11-21 15:56:57 +08:00
Nick Cao
801b38a29c guile_3_0: use correct version of guile for cross compilation 2022-11-21 15:56:55 +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
Gabriel Arazas
eea95ff4da guile: add extensions search path to setup hook 2022-08-28 19:35:18 +08:00
Brian Leung
63845e0cde guile_3_0: Enable parallel build when not cross-compiling
See
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/guile.scm?h=a39207f7afd977e4e4299c6f0bb34bcb6d153818#n405
2022-08-27 13:51:04 -07: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
a96ff65536 guile_3_0: fix attribute for updater script
Without the change updater script extracts location from `guile` (`guile_2_2`).

I did not notice it initially as I use local override of `guile = guile_3_0`.
2022-03-16 23:15:57 +00: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
Sergei Trofimovich
fce058c80e guile_3_0: 3.0.7 -> 3.0.8
While at it added trivial updater script.

Changes: https://git.savannah.gnu.org/cgit/guile.git/tree/NEWS?h=v3.0.8#n8

Had to disable LTO on darwin as toolchain can't link executables there.
2022-02-20 09:07:24 +00:00
Finn Behrens
eeed6c653b guile_3_0: fix aarch64-darwin build 2022-01-01 00:21:34 +01:00
AndersonTorres
4e7399a3e5 guile: init at 3.0 2021-09-29 17:29:32 -03:00
AndersonTorres
3859aab0c6 guile 2.2: rename and reformat 2021-09-29 17:29:31 -03:00
AndersonTorres
8572e8818f guile 2.0: rename and reformat 2021-09-29 17:29:31 -03:00