Commit Graph

103 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
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Siddhartha
722f0b0554 folly: 2024.01.22.00 -> 2024.03.11.00 2024-03-14 18:14:38 -04:00
Robert Scott
e70589fe0f folly: add some key reverse-dependencies to passthru.tests 2024-01-28 21:44:23 +00:00
R. Ryantm
eab8604428 folly: 2023.02.27.00 -> 2024.01.22.00 2024-01-28 21:44:23 +00:00
Bryan Lai
b5eb666341 folly: split outputs to reduce closure sizes
This shaves off a 100MiB+ `boost.dev` dependence from `folly.out`, which
would benefit all downstream packages that dynamically link to folly.

Upstream's cmake configuration is not suitable for split packages, and
some tweaks are applied for it to work; these are taken from:

- 04384d56cf
- 8d712ccc16

See: https://github.com/jtojnar/cmake-snips
2024-01-05 12:06:56 -08:00
R. Ryantm
dbed57a0e4 folly: 2023.02.13.00 -> 2023.02.27.00 2023-03-02 10:08:57 +00:00
Bernardo Meurer
42008a14a4
Merge pull request #217206 from Artturin/stdenvimprovements1 2023-02-23 12:07:47 +00: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
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
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
2023-02-22 21:23:04 +02:00
R. Ryantm
66f816e402 folly: 2023.02.06.00 -> 2023.02.13.00 2023-02-22 10:19:49 +00:00
Weijia Wang
32b3026755
Merge pull request #181787 from kylesferrazza/update-watchman
Update watchman (and create all the packages it now depends on)
2023-02-10 07:09:44 +01:00
R. Ryantm
0e354ee415 folly: 2023.01.30.00 -> 2023.02.06.00 2023-02-10 01:28:26 +00:00
Andrew Hamon
79dfe3a864 folly: fix build on aarch64-linux 2023-02-08 22:33:11 -08:00
R. Ryantm
0ec33e6d27 folly: 2022.11.28.00 -> 2023.01.30.00 2023-02-02 05:58:59 +00:00
R. Ryantm
ea86105776 folly: 2022.11.07.00 -> 2022.11.28.00 2022-11-28 23:31:38 +00:00
R. Ryantm
a9531a1a27 folly: 2022.09.05.00 -> 2022.11.07.00 2022-11-07 21:06:27 +00:00
Vladimír Čunát
23b3d4fb8e
folly: fix paths in .pc file 2022-09-28 17:48:17 +02:00
R. Ryantm
518bdf2c1c folly: 2022.08.29.00 -> 2022.09.05.00 2022-09-05 14:00:12 +00:00
R. Ryantm
c2d13f6099 folly: 2022.08.22.00 -> 2022.08.29.00 2022-08-29 19:28:10 +00:00
Mario Rodas
f7c115113c
Merge pull request #187970 from r-ryantm/auto-update/folly
folly: 2022.08.15.00 -> 2022.08.22.00
2022-08-27 01:59:16 -05:00
Jonathan Ringer
8d3fc481a4 folly: expose fmt and boost libs
This allows for people consuming these
packages to inherit the same libaries.

This is needed because the folly-config.cmake
will use `find_package` on these dependencies,
thus downstream packages should avoid potential
abi issues.
2022-08-24 07:56:23 -07:00
R. Ryantm
d755a4fc1a folly: 2022.08.15.00 -> 2022.08.22.00 2022-08-23 06:52:50 +00:00
R. Ryantm
c3860d32dc folly: 2022.08.08.00 -> 2022.08.15.00 2022-08-15 10:37:58 +00:00
R. Ryantm
257a53681b folly: 2022.08.01.00 -> 2022.08.08.00 2022-08-10 16:18:40 +00:00
R. Ryantm
5199c1593e folly: 2022.07.25.00 -> 2022.08.01.00 2022-08-01 14:10:10 +00:00
R. Ryantm
c976f3e8f3 folly: 2022.07.04.00 -> 2022.07.25.00 2022-07-28 05:40:18 +00:00
Jörg Thalheim
9b09ad4772
Merge pull request #174237 from Mic92/folly
folly: enable jemalloc
2022-07-18 12:53:06 +01:00
R. Ryantm
115b16a2d1 folly: 2022.06.13.00 -> 2022.07.04.00 2022-07-08 10:57:39 +00:00
R. Ryantm
4202fe6805 folly: 2022.05.23.00 -> 2022.06.13.00 2022-06-25 23:36:49 +00:00
R. Ryantm
569e8b5df4 folly: 2022.05.16.00 -> 2022.05.23.00 2022-05-27 12:21:21 +00:00
R. Ryantm
da9a0f0f1b folly: 2022.02.28.00 -> 2022.05.16.00 2022-05-25 20:06:55 +00:00
Jörg Thalheim
a1ba737c5e
folly: enable jemalloc
Folly does take advantage of jemalloc to expand allocations in-place when possible.
2022-05-24 07:18:07 +02:00
squalus
6088824eee folly: fix build
- fix build by adding -fpermissive cflag
- add aarch64-linux to supported platforms
2022-05-15 14:12:02 -07:00
R. Ryantm
6c335de816 folly: 2022.02.21.00 -> 2022.02.28.00 2022-03-01 05:35:04 +00:00
R. Ryantm
4bb2d9b4e5 folly: 2022.02.14.00 -> 2022.02.21.00 2022-02-25 10:48:47 -08:00
R. Ryantm
0a5b5149e1 folly: 2022.02.07.00 -> 2022.02.14.00 2022-02-14 15:39:28 +00:00
Jonathan Ringer
2c30bcd1b1 folly: 2021.10.25.00 -> 2022.02.07.00 2022-02-09 19:25:19 -08:00
R. Ryantm
f7f718aaf8 folly: 2021.09.20.00 -> 2021.10.25.00 2021-10-29 15:39:03 +00:00
R. RyanTM
bb89ef8556 folly: 2021.09.13.00 -> 2021.09.20.00 2021-09-22 06:36:53 +00:00
R. RyanTM
4c5522ff0f folly: 2021.08.30.00 -> 2021.09.13.00 2021-09-14 07:23:52 +00:00
R. RyanTM
954439a81b folly: 2021.08.23.00 -> 2021.08.30.00 2021-09-06 08:14:43 +00:00
R. RyanTM
4dee57f2d5 folly: 2021.08.02.00 -> 2021.08.23.00 2021-08-24 04:38:08 +00:00
R. RyanTM
34892123a4 folly: 2021.01.25.00 -> 2021.08.02.00 2021-08-07 07:48:50 +00:00
Sandro Jäckel
3453b89f4b
lzma: deprecate alias 2021-04-04 19:49:52 +02:00
R. RyanTM
ccc5582110 folly: 2021.01.18.01 -> 2021.01.25.00 2021-01-29 02:07:28 +00:00
R. RyanTM
2d390cdbc3 folly: 2021.01.18.00 -> 2021.01.18.01 2021-01-22 11:53:16 +00:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
R. RyanTM
513b2647dc folly: 2020.09.28.00 -> 2021.01.18.00 2021-01-18 20:46:36 -05:00