Commit Graph

189 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
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
AndersonTorres
af62264e5c guile 1.8: rename and reformat 2021-09-29 13:00:56 -03:00
Masanori Ogino
8d213e1ff9 guile-1.8: fix CVE-2016-8605
Backports 245608911698adb3472803856019bdd5670b6614 from guile.git
Fixes https://github.com/NixOS/nixpkgs/issues/73648

Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
2021-02-23 20:38:06 +09:00
Ben Siraphob
001c0cbe54 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Dmitry Bogatov
507369bf27 guile: fix static build 2020-12-30 00:00:00 +00:00
Kovacsics Robert
612ec25256
guile: setup hook, use compiled files
Often packages install the compiled files to
`$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache` (e.g. see
guile-opengl). This path is not explicitly given in the info page, but
is used in a couple of places, and is also part of `%load-compiled-path`
variable in guile (for `"${guile}/lib/guile/2.2/ccache`).

Similarly, the site-ccache is also part of `%load-compiled-path` in
guile.
2020-11-28 11:16:25 +01:00
Doron Behar
4696a622ce
Merge pull request #78778 from grahamc/guile-r13y
guile: disable parallel building for reproducibility
2020-10-21 20:21:25 +03:00
Arthur Gautier
230a563bfe guile: fixup musl support
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
2020-08-22 10:31:02 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Lancelot SIX
605640b294 guile: 2.2.6 -> 2.2.7
See https://lists.gnu.org/archive/html/info-gnu/2020-03/msg00004.html
for release information
2020-03-11 23:56:38 +00:00
Graham Christensen
6fea9e5902
guile: disable parallel building for reproducibility 2020-01-29 11:59:03 -05:00
Jan Tojnar
2a85ee83b2
guile: fix unbound variable in setup-hook
For compat with set -u
2019-11-20 05:12:13 +01:00
volth
7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
R. RyanTM
02466bea79 guile: 2.2.4 -> 2.2.6
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/guile/versions
2019-07-15 09:05:36 -07:00
Ben Wolsieffer
0a7bc4645b guile: 2.2.3 -> 2.2.4 2019-06-15 18:20:16 +02:00
Matthew Bauer
85cc94c40e guile_2_0: add patches for macos 10.12 2019-04-26 21:54:54 -04:00