Commit Graph

86 Commits

Author SHA1 Message Date
coolcuber
ec699903ba gerbil-unstable: fix version 2026-08-15 20:28:31 -04:00
Diego Strebel
07db3a1fee gerbil: fix build 2026-02-15 00:58:02 +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
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Peder Bergebakken Sundt
a0bddc6b9c xmpp-bridge, tinyemu, mindustry, glow-lang: mark broken (#356820) 2025-01-17 02:26:34 +01: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
Rick van Schijndel
e11db000c5 glow-lang: mark broken, doesn't build since 2023-10-13 2024-11-17 22:46:13 +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
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Philip Taron
91feb4b6f3 Avoid top-level with ...; in pkgs/development/compilers/gerbil/gerbil-support.nix
The set of names to inherit was generated by running this in a loop until it did not error:

```
nix-instantiate --parse pkgs/development/compilers/gerbil/gerbil-support.nix
```
2024-04-02 00:50:15 +02:00
Michael Holmes
e6364478be gerbil: fix soname of libgerbil on darwin
The soname/identification of libgerbil on darwin is not correctly fixed up,
resulting in any binaries linked with libgerbil to attempt to link to
libgerbil in the temporary build dir from the gerbil derivation. This
means that any compiled gerbil program won't work as the propagated soname
will result in the binary being unable to correctly link with libgerbil.

Adding an Darwin-only step to use `install_name_tool` to fix up the soname
of libgerbil fixes this issue. We're using realpath here as the qualified
path to `libgerbil` is `$out/gerbil/$version/lib/libgerbil.so` and this is
an easier way to obtain the qualified path.

Fixes NixOS/nixpkgs#272967.
2023-12-12 10:26:12 -05:00
Francois-Rene Rideau
0a1d004bf2 gerbilPackages-unstable: library updates 2023-12-05 21:32:26 -05:00
Francois-Rene Rideau
97bb6e60f8 gerbil-unstable: 2023-10-13 -> 2023-12-05 2023-12-05 21:32:26 -05:00
Francois-Rene Rideau
8859b057e3 gerbil: 0.18 -> 0.18.1 2023-12-05 21:32:26 -05:00
Francois-Rene Rideau
dbee0d9a81 gerbilPackages-unstable: update libraries 2023-10-15 19:00:22 -04:00
Francois-Rene Rideau
510a0f7919 gerbil-unstable: 2023-08-07 -> 2023-10-13 2023-10-15 19:00:21 -04:00
Francois-Rene Rideau
2fdfcc5352 gerbil: 0.17 -> 0.18 2023-10-15 19:00:21 -04:00
Francois-Rene Rideau
0afac45561 glow-lang: init at 2023-04-26
Post Release v0.3.2
2023-08-08 15:26:40 -04:00
Alex Plotnick
d676fab367 gerbilPackages-unstable.ftw: init at 2022-01-14 2023-08-08 15:26:40 -04:00
Francois-Rene Rideau
f4320c3dbb gerbilPackages-unstable.smug-gerbil: 2019-12-24 -> 2020-12-12 2023-08-07 20:58:40 -04:00
Francois-Rene Rideau
0c12adcf14 gerbilPackages-unstable.gerbil-libp2p: 2018-12-27 -> 2022-02-03 2023-08-07 20:58:40 -04:00
Francois-Rene Rideau
c3c550ddaf gerbilPackages-unstable.gerbil-ethereum: 2020-10-18 -> 2023-05-30 2023-08-07 20:58:40 -04:00
Francois-Rene Rideau
c83f11c3fa gerbilPackages-unstable.gerbil-persist: 2020-08-31 -> 2023-03-02 2023-08-07 20:58:39 -04:00
Francois-Rene Rideau
2f8b602ea5 gerbilPackages-unstable.gerbil-crypto: 2020-08-01 -> 2023-03-27 2023-08-07 20:58:39 -04:00
Francois-Rene Rideau
9dac3760b1 gerbilPackages-unstable.gerbil-poo: 2020-10-17 -> 2023-04-28 2023-08-07 20:58:39 -04:00
Francois-Rene Rideau
94518a101f gerbilPackages-unstable.gerbil-utils: 2020-10-18 -> 2023-07-22 2023-08-07 20:58:39 -04:00
Francois-Rene Rideau
a59d0f777d gerbil-unstable: 2020-11-05 -> 2023-08-07 2023-08-07 20:58:29 -04:00
Francois-Rene Rideau
8f7ef19779 gerbil: 0.16 -> 0.17 2023-08-07 20:58:29 -04:00
Francois-Rene Rideau
d387b0ef45 gerbil-support: various improvements
Add an indirection between gerbil package parameters and nix packages
computed from those parameters, so overlays can easily override the former.

Run unit-tests of gerbil packages (not integration tests).

Fix binaries for gerbil packages.

Fix support for gerbil packages including binaries.
2023-08-07 20:58:29 -04:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
0734f54ef2 treewide: move pkg-config, autoreconfHook, intltool to nativeBuildInputs
found with nixpkgs-lint
2022-09-26 17:53:26 +03:00
Theodore Ni
a813457d19 gerbil: reenable stackprotector on aarch64-darwin
The original error that required disabling the stack protector on
aarch64-darwin has been fixed in GCC.
2022-09-04 11:57:11 -07:00
AlexKnauth
4cd5481f71 gerbil: disable stackprotector on aarch64-darwin for now 2021-12-22 11:10:08 -05:00
Ben Siraphob
7273ebabfa gambit: refactor (#113405) 2021-03-09 10:52:26 +01:00
Francois-Rene Rideau
3d33e4f799 gerbilPackages-unstable.gerbil-libp2p: init at 2018-12-27 2020-11-06 12:04:00 -05:00
Francois-Rene Rideau
65a9077095 gerbilPackages-unstable.gerbil-ethereum: 2020-08-02 -> 2020-10-18 2020-11-06 12:03:59 -05:00
Francois-Rene Rideau
58bddc26d4 gerbilPackages-unstable.gerbil-persist: 2020-08-02 -> 2020-08-31 2020-11-06 12:03:59 -05:00
Francois-Rene Rideau
78bf0aca70 gerbilPackages-unstable.gerbil-poo: 2020-08-02 -> 2020-10-17 2020-11-06 12:03:59 -05:00
Francois-Rene Rideau
520e10f6a5 gerbilPackages-unstable.gerbil-utils: 2020-08-02 -> 2020-10-18 2020-11-06 12:03:58 -05:00
Francois-Rene Rideau
8ff03048f9 gerbilPackages-unstable.smug-gerbil: init at 2019-12-24 2020-11-06 12:03:58 -05:00
Francois-Rene Rideau
078d667f9e gerbil-unstable: 2020-08-02 -> 2020-11-05 2020-11-06 12:03:58 -05:00
Francois-Rene Rideau
db34ea1698 gerbilPackages-unstable.gerbil-ethereum: init at 2020-08-02 2020-08-02 13:28:55 -04:00
Francois-Rene Rideau
953f41f540 gerbilPackages-unstable.gerbil-persist: init at 2020-08-02 2020-08-02 13:28:55 -04:00
Francois-Rene Rideau
d0c856d4d0 gerbilPackages-unstable.gerbil-poo: init at 2020-08-02 2020-08-02 13:28:55 -04:00
Francois-Rene Rideau
c9b05a3eb9 gerbilPackages-unstable.gerbil-crypto: init at 2020-08-01 2020-08-02 13:28:55 -04:00
Francois-Rene Rideau
cc894c6d91 gerbilPackages-unstable.gerbil-utils: 2020-05-17 -> 2020-08-02
Better version support for Gerbil packages.
Use passthru for meta-information used by other packages.
2020-08-02 13:28:20 -04:00
Francois-Rene Rideau
0d99266e5e gerbil-unstable: 2020-05-17 -> 2020-08-02 2020-08-02 12:29:29 -04:00
Francois-Rene Rideau
0d0f475f27 gerbil: 0.15.1 -> 0.16
Now that v0.16 was released at last, make the configurePhase and instalPhase
the same again for default and unstable.
2020-05-17 16:14:22 -04:00
Francois-Rene Rideau
f9360e7974 gerbilPackages.gerbil-utils: init at 2020-05-16 2020-05-17 16:09:26 -04:00