Commit Graph

87 Commits

Author SHA1 Message Date
Adam C. Stephens
7e34437240 beam.interpreters.erlang_27: 27.3.4.12 -> 27.3.4.13
Changelog: https://github.com/erlang/otp/releases/tag/OTP-27.3.4.13
2026-06-10 13:50:18 -04:00
Adam C. Stephens
5be70b9564 beamMinimal27Packages.erlang: use upstream doc target patch 2026-06-03 13:32:34 -04:00
Adam C. Stephens
8a63423119 beamMinimal27Packages.erlang: fix build failure from ignored DOC_TARGETS
Assisted-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 15:13:31 -04:00
Jo
2c2a562260 unixodbc{,Drivers}: rename from unixODBC{,Drivers} (#489676) 2026-03-06 11:52:28 +00:00
quantenzitrone
62efab0dad wxwidgets_3_{1,2}: rename from wxGTK3{1,2}
fit attrname to pname
2026-02-27 10:56:33 +01:00
quantenzitrone
2226596501 unixodbc: refactor and rename from unixODBC
rename to lowercase to fit package naming conventions
2026-02-27 10:52:14 +01:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Adam C. Stephens
2186163629 erlang_26: 26.2.5.15 -> 26.2.5.16
Changelog: https://github.com/erlang/otp/releases/tag/OTP-26.2.5.16
2025-11-08 08:40:41 -05:00
Adam C. Stephens
5ca2738511 erlang: switch to imports for versions and simplify overriding 2025-10-05 11:14:32 -04:00
Adam C. Stephens
94ad9783cf erlang: switch to pname and src tag 2025-10-03 16:57:28 -04:00
Adam C. Stephens
b73c854d3b erlang: remove overriding of phases
idiomatic should be to use overrideAttrs for those who need it.
2025-10-03 16:57:28 -04:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Adam C. Stephens
5424213981 erlang: switch to nix-update-script 2025-05-29 10:09:18 -04:00
Thomas Nixon
d30e6a0879 erlang: fix empty documentation chunks in OTP 26
Without this, chunks are present but empty. Later versions do not seem
to be affected.

issue introduced in 284bdce430
2025-05-06 14:57:13 +01:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Adam C. Stephens
e19ec916f4 beam_minimal: disable systemdSupport
This is an unnecessary expansion of the closure for a package that is used in non-systemd environments.
systemd support is only necessary for epmd when used with systemd sockets.
We already default `services.epmd.package` to `pkgs.erlang` which uses the full `beam` erlang.
2025-04-06 17:51:18 -04:00
Adam C. Stephens
51e060773c beam: collapse beam_nox into beam_minimal and enable systemd by default 2025-04-01 21:29:26 -04:00
Adam C. Stephens
07a47f4744 erlang: drop unnecessary autoconf 2025-03-20 20:44:59 +00:00
Adam C. Stephens
284bdce430 erlang: stop building web docs 2025-03-20 19:42:38 +00:00
Adam C. Stephens
7ffa9e92b5 erlang_28: init at 28.0-rc1 2025-02-16 21:20:25 -05:00
Yt
1bc15dbb04 erlang: use nixpkgs zlib, fix darwin (#367981) 2024-12-24 23:33:48 -05:00
Adam C. Stephens
8b63910a02 erlang: use nixpkgs zlib, fix darwin
Darwin is failing with the bundled zlib. We should be using the nixpkgs
zlib anyway, so add to buildInputs for all.

Removed legacy Darwin sdk pattern.
2024-12-24 13:53:18 -05:00
Adam C. Stephens
99ab831a06 erlang: fix updateScript 2024-12-24 09:51:51 -05: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
chiroptical
60d00382ce erlang_27: 27.0.1 -> 27.1.2 2024-10-18 12:26:37 -04: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
Adam Stephens
836658e721 beam-packages: add nodocs target for building ex_doc on 27+ 2024-09-06 09:57:17 -04:00
Barry Moore
c770420c90 erlang_27: 27.0.1 -> 27.0 2024-07-16 16:39:39 -04:00
chiroptical
49a8e45bb0 erlang_27: 27.0 -> 27.0.1 2024-07-11 19:35:33 -04:00
Liam Diprose
6ae361cbd2 erlang: patch sh path
RabbitMQ 3.13 crashes because it requires Erlang/OTP 26 and hits [this call to `sh`](https://github.com/erlang/otp/blob/maint-26/lib/os_mon/src/disksup.erl#L243). This patches the call to `sh` with its full path, `${bash}/bin/sh` when the version is older than 25
2024-06-07 01:46:27 +12:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Barry Moore
92b656e044 erlang_27: init at 27-rc2 2024-04-13 21:27:59 -04:00
Michael Fellinger
75d6be6c99 erlang: add wrapGAppsHook 2024-04-08 15:23:40 +02:00
superherointj
441cbfcfd2 erlang: normalize version name 2023-03-21 16:12:05 -04:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
superherointj
2787fc7d1e erlang: fix build 2022-12-08 08:59:40 -05:00
Weijia Wang
166db6ef4b erlang: don't relink escript on darwin 2022-12-07 21:13:02 -05:00
Dany Marcoux
0c88d9b773 erlang: Add escript to $PATH
Closes #204781
2022-12-07 09:43:04 -05:00
Weijia Wang
62b8fc7725 erlangR24: fix build on x86_64-darwin 2022-11-25 11:04:00 -05:00
Weijia Wang
d72bcc2bc9 erlang: wxmac -> wxGTK 2022-11-14 18:24:54 -05:00
José Romildo
ba59355e81 gitUpdater: init
- Add the 'gitUpdater' helper function to update git based packages, using the
'genericUpdater' function.
- Rework argument passing to the `list-git-tags' and 'list-archive-two-level-versions' scripts.
- Replace 'genericUpdater' plus 'list-git-tags' by 'gitUpdater'
2022-02-21 13:01:49 -03:00
happysalada
1cbb0feae5 erlang: fix nix-env version confusion 2021-09-27 20:39:30 +09:00
David
98bfb51d00 erlang: make systemd optional, add pkgs.beam_minimal 2021-09-11 23:11:17 +09:00
happysalada
e41c7bc1f8 erlang: remove unused setup hook 2021-06-07 10:03:48 +09:00
happysalada
af0844c7a2 beam: nixpkgs-fmt 2021-06-03 22:15:31 +09:00
Justin Wood
7500267ed9 ErlangR24: init at 24.0
Update configure options

The configure script now needs to be told about the headers and the
actual lib files separately.

Remove extra whitespace
2021-05-13 11:48:19 -07:00
David Leslie
a7b54d9016 erlang: add updateScript and update versions (#118831)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-04-12 19:59:37 +02:00
Ivan Babrou
81aa7a1344 erlangR23, erlangR22, erlangR21: remove obsolete substituteInPlace 2021-03-03 17:20:07 -08:00
Ivan Babrou
e96c9b30fa erlang: add missing WebKit framework on darwin
Fixing the following error:

```
 LD     ../priv/x86_64-apple-darwin20.3.0/wxe_driver.so
ld: file not found: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
```
2021-02-28 11:58:25 -08:00
Ivan Babrou
a026ea9856 erlang: add missing AGL framework for aarch64-darwin
Preventing this:

```
 LD     ../priv/aarch64-apple-darwin20.3.0/wxe_driver.so
ld: file not found: /System/Library/Frameworks/AGL.framework/Versions/A/AGL for architecture arm64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:176: ../priv/aarch64-apple-darwin20.3.0/wxe_driver.so] Error 1
```
2021-02-28 17:40:00 +00:00