Commit Graph

78 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
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
Francois-Rene Rideau
756c8a27d9 gerbil-unstable: 2020-02-27 -> 2020-05-17 2020-05-17 15:51:05 -04:00
Francois-Rene Rideau
90835bc666 Refactor Gerbil support
- Use the new Gambit support.
- Move files from $out to $out/gerbil.
- Use new Gerbil configuration and installation scripts.
- Move some fixups from preBuild to postPatch.
- Give up on previous failed attempts at using static libraries.
- Add support for compiling libraries written in Gerbil.
- Build using NIX_BUILD_CORES.
- Register all those things in all-packages.
2020-05-17 15:48:13 -04:00
Francois-Rene Rideau
4ee219ef8e gerbil-unstable: 2019-11-15 -> 2020-02-27
Let Gerbil Scheme find its GERBIL_HOME where Nix put it
when the environment variable is left unspecified.

Comment out work in progress for static linking.

Notes about working on macOS.
2020-02-27 16:02:39 -05:00
Robin Gloster
5f2b92e3ec
treewide: NIX_*_COMPILE -> string 2019-12-31 00:13:29 +01:00
Francois-Rene Rideau
3823b386b4 gerbil-unstable: 2019-08-11 -> 2019-11-10
Also, build with gambit rather than gambit-unstable, because of, well,
instability in the current gambit-unstable.
2019-11-23 18:12:34 -05:00
Vladimír Čunát
22a216849b
Re-Revert "Merge branch 'staging-next'"
This reverts commit f8a8fc6c7c.
2019-09-22 09:38:09 +02:00
Vladimír Čunát
f8a8fc6c7c
Revert "Merge branch 'staging-next'"
This reverts commit 41af38f372, reversing
changes made to f0fec244ca.

Let's delay this.  We have some serious regressions.
2019-09-21 20:05:09 +02:00
Izorkin
329a88efa7 treewide: replace mysql.connector-c to libmysqlclient 2019-09-09 15:55:34 +03:00