Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
7bec82f
cmake: check if NIX_CC exists before using it
Sep 25, 2022
7a9d47d
cmake: check for `$ENV{NIX_CC}` with quotes
KiruyaMomochi Oct 15, 2022
36ebfaf
libcamera: unstable-2022-09-15 -> 0.0.1
jansol Oct 20, 2022
2610d7d
libcamera: fix IPA module signatures
lopsided98 Sep 15, 2022
e0c70d5
stdenvBootstrapTools: fix cycle on aarch64-darwin
stephank Oct 20, 2022
8fb885a
qt{5,6}: disable QML disk cache by default
tpwrules Oct 21, 2022
39d6cfd
nixos/sddm: remove stale qmlcache workaround
tpwrules Oct 21, 2022
04706f6
release-notes: add info about disabled QML cache
tpwrules Oct 21, 2022
bd7c85e
linuxPackages.perf: fix cross-compilation by providing HOSTLD
delroth Oct 25, 2022
0b5be61
glib: 2.74.0 → 2.74.1
jtojnar Oct 25, 2022
77bd639
cc-wrapper: adding a cc-wrapper-hook to the cc-wrapper
danielbarter Oct 26, 2022
1bab417
tracker: 3.4.0 → 3.4.1
jtojnar Oct 26, 2022
f980fb0
python310Packages.psutil: 5.9.2 -> 5.9.3
fabaff Oct 28, 2022
2d228bf
Merge staging-next into staging
github-actions[bot] Oct 28, 2022
d982d06
python310Packages.exceptiongroup: 1.0.0rc9 -> 1.0.0
fabaff Oct 28, 2022
867ebb3
python310Packages.cattrs: 22.1.0 -> 22.2.0
fabaff Oct 28, 2022
31e379c
python310Packages.requests-cache: 0.9.7 -> 0.9.7
fabaff Oct 28, 2022
8c6ed9a
python310Packages.build: 0.8.0 -> 0.9.0
fabaff Oct 28, 2022
0c09b3d
Merge pull request #197937 from danielbarter/cc-wrapper-hook
Ericson2314 Oct 28, 2022
2f054ca
python310Packages.pymemcache: 3.5.2 -> 4.0.0
fabaff Oct 26, 2022
35f5a8a
Merge staging-next into staging
github-actions[bot] Oct 28, 2022
ef5beda
python311Packages.cython: add patch for python3.11 compatibility
voidus Oct 28, 2022
c45b1c2
Merge staging-next into staging
github-actions[bot] Oct 29, 2022
89fb685
Merge pull request #198256 from fabaff/build-bump
marsam Oct 29, 2022
78a418c
Merge pull request #198255 from fabaff/psutil-bump
marsam Oct 29, 2022
4e2a1eb
Merge staging-next into staging
github-actions[bot] Oct 29, 2022
87f4cc0
Merge staging-next into staging
github-actions[bot] Oct 29, 2022
dd86663
Merge pull request #197754 from jtojnar/gnome-staging
jtojnar Oct 29, 2022
d2cd38d
python310Packages.py-cpuinfo: 8.0.0 -> 9.0.0
fabaff Oct 29, 2022
7d5f5e1
tzdata: 2022e -> 2022f
ajs124 Oct 29, 2022
9f11933
python3Packages.pytest-subtests: 0.8.0 -> 0.9.0
voidus Oct 28, 2022
d9246ea
taglib: 1.12 -> 1.13
r-ryantm Oct 27, 2022
61802ef
Merge staging-next into staging
github-actions[bot] Oct 29, 2022
4e74b20
flac: 1.4.1 -> 1.4.2
r-ryantm Oct 24, 2022
6f7a7cf
flac: add meta.changelog
Oct 29, 2022
40a81c7
Merge staging-next into staging
github-actions[bot] Oct 30, 2022
ccbce7e
icu72: init at 72.1
marsam Oct 30, 2022
aa09845
icu: 71.1 -> 72.1
marsam Oct 30, 2022
85adbe2
Merge staging-next into staging
github-actions[bot] Oct 30, 2022
1373696
jekyll-favicon: init at 1.1.0
l0b0 Oct 30, 2022
4ad882c
Merge pull request #198600 from l0b0/feat/add-jekyll-favicon
marsam Oct 30, 2022
850260c
Merge staging-next into staging
github-actions[bot] Oct 30, 2022
8b31b52
Merge pull request #197697 from delroth/linux-perf-cross
delroth Oct 30, 2022
845c39b
pythonFull: drop unused xlibsWrapper input
trofi Oct 30, 2022
c2eaaae
cargoSetupHook: pass host config flags
yuyuyureka Oct 28, 2022
7852c61
cargo: no longer broken on musl
yuyuyureka Oct 28, 2022
0d7da62
Merge staging-next into staging
github-actions[bot] Oct 30, 2022
3841cbc
Merge pull request #198475 from helsinki-systems/upd/tzdata
ajs124 Oct 30, 2022
10614d6
Merge pull request #198302 from voidus/skia-pathops
SuperSandro2000 Oct 30, 2022
6dbc4d9
python3Packages.ruamel-yaml-clib: 0.2.6 -> 0.2.7
tjni Oct 30, 2022
29be9a6
Merge pull request #198711 from tjni/fix-ruamel
SuperSandro2000 Oct 31, 2022
017862e
Merge staging-next into staging
github-actions[bot] Oct 31, 2022
0a73a64
Merge staging-next into staging
github-actions[bot] Oct 31, 2022
dca52e3
Merge pull request #198458 from fabaff/py-cpuinfo-bump
fabaff Oct 31, 2022
d980d35
Merge staging-next into staging
github-actions[bot] Oct 31, 2022
ab3e70a
inetutils: 2.3 -> 2.4
LeSuisse Oct 29, 2022
26e69f6
libcpuid: 0.6.0 -> 0.6.1
r-ryantm Oct 23, 2022
065e2fe
libcpuid: add meta.changelog
Oct 31, 2022
1f197e2
pythonRelaxDepsHook: improve Requires-Dist parsing
delroth Oct 31, 2022
85d6819
Merge staging-next into staging
github-actions[bot] Oct 31, 2022
7765dd1
libxcrypt: 4.4.28 -> 4.4.29
mweinelt Oct 31, 2022
a8e550e
Merge staging-next into staging
github-actions[bot] Nov 1, 2022
b219031
Merge staging-next into staging
github-actions[bot] Nov 1, 2022
c112513
Merge pull request #196845 from jansol/libcamera-release
mweinelt Nov 1, 2022
23137cc
Merge pull request #191595 from lopsided98/libcamera-signing
mweinelt Nov 1, 2022
39d4ab1
Merge staging-next into staging
github-actions[bot] Nov 1, 2022
d3f4f67
Merge pull request #198841 from mweinelt/libxcrypt-4.4.29
mweinelt Nov 1, 2022
4fe74d5
Merge pull request #198802 from delroth/relax-deps-hook-regexp
delroth Nov 1, 2022
fad5f16
Merge pull request #197010 from tpwrules/disable-qt-cache
SuperSandro2000 Nov 1, 2022
32ebb91
openssl_1_1: 1.1.1q -> 1.1.1s
vcunat Nov 1, 2022
6aa0c5e
openssl_1_1: drop a long unused patch
vcunat Nov 1, 2022
5a70f6d
Merge staging-next into staging
github-actions[bot] Nov 1, 2022
5245e73
cmake: put the `DEFINED` check in the same if-statement
KiruyaMomochi Nov 1, 2022
86e8528
cppunit: disable blanket -Werror
trofi Nov 1, 2022
fb50567
libxcrypt: 4.4.29 -> 4.4.30
mweinelt Nov 1, 2022
2c7caa6
Merge pull request #199008 from mweinelt/libxcrypt-4.4.30
mweinelt Nov 1, 2022
b6b54cc
spirv-tools: disable blanket -Werror
trofi Nov 1, 2022
8b91dae
Merge pull request #197864 from fabaff/pymemcache-bump
fabaff Nov 1, 2022
452026e
Merge staging-next into staging
github-actions[bot] Nov 2, 2022
aa1b3d8
Merge pull request #198292 from voidus/pytest-subtest
mweinelt Nov 2, 2022
ff1df95
Merge staging-next into staging
github-actions[bot] Nov 2, 2022
a3c00da
libcamera: disable blanket -Werror
trofi Nov 2, 2022
441454d
Merge pull request #198260 from fabaff/requests-cache-bump
fabaff Nov 2, 2022
627b4dc
aws-sdk-cpp: disable blanket -Werror
trofi Nov 2, 2022
1cbf126
cvise: disable blanket -Werror
trofi Nov 2, 2022
8773eeb
Merge pull request #199063 from trofi/spirv-tools-disable-werror
trofi Nov 2, 2022
9a3176f
Merge pull request #199115 from trofi/libcamera-without-werror
Mic92 Nov 2, 2022
71d2c63
Merge staging-next into staging
github-actions[bot] Nov 2, 2022
0e4af0e
calamares: add locale path patch
vlinkz Jul 31, 2022
40ade45
glib-locales: store SUPPORTED locales file
vlinkz Jul 31, 2022
f4e5414
calamares-cd: default supporting all locales
vlinkz Jul 31, 2022
57abb43
calamares-nixos-extensions: 0.3.10 -> 0.3.11
vlinkz Jul 31, 2022
ddb6f2f
Merge master into staging-next
github-actions[bot] Nov 2, 2022
3e5d1d0
Merge staging-next into staging
github-actions[bot] Nov 2, 2022
eb6caa8
elfutils: 0.187 -> 0.188
trofi Nov 2, 2022
0c72496
Merge master into staging-next
github-actions[bot] Nov 3, 2022
89bfc5f
Merge staging-next into staging
github-actions[bot] Nov 3, 2022
a48d89a
Merge master into staging-next
github-actions[bot] Nov 3, 2022
d7a3a8a
Merge staging-next into staging
github-actions[bot] Nov 3, 2022
1c0ceea
Merge pull request #192943 from KiruyaMomochi/cmake
lovesegfault Nov 3, 2022
e0a1f2a
Merge master into staging-next
github-actions[bot] Nov 3, 2022
80d6cd3
Merge staging-next into staging
github-actions[bot] Nov 3, 2022
1cd758b
Merge master into staging-next
github-actions[bot] Nov 3, 2022
a5a5133
Merge staging-next into staging
github-actions[bot] Nov 3, 2022
5924132
xorg.libXi: propagate libXext due to header dependencies
sternenseemann Nov 3, 2022
33a2310
Merge master into staging-next
github-actions[bot] Nov 4, 2022
08b08d0
Merge staging-next into staging
github-actions[bot] Nov 4, 2022
dd36248
tzdata: fix build on darwin
tjni Oct 31, 2022
4c23a02
Merge pull request #199304 from marsam/update-icu
marsam Nov 4, 2022
6a18c15
Merge master into staging-next
github-actions[bot] Nov 4, 2022
194df35
Merge staging-next into staging
github-actions[bot] Nov 4, 2022
1514f5b
Merge master into staging-next
github-actions[bot] Nov 4, 2022
2248464
Merge staging-next into staging
github-actions[bot] Nov 4, 2022
dbdd50f
Merge master into staging-next
github-actions[bot] Nov 4, 2022
07bf88e
Merge staging-next into staging
github-actions[bot] Nov 4, 2022
8fb064c
Merge master into staging-next
github-actions[bot] Nov 5, 2022
cfd5f0b
Merge staging-next into staging
github-actions[bot] Nov 5, 2022
844a08c
systemd: 251.5 -> 251.7
martinetd Nov 5, 2022
bfe9ead
python3Packages.pytest-datadir: 1.3.1 → 1.4.1
kira-bruneau Jul 17, 2022
46cbaad
Merge master into staging-next
github-actions[bot] Nov 5, 2022
52c99d8
Merge staging-next into staging
github-actions[bot] Nov 5, 2022
bc280ce
Merge pull request #199122 from trofi/cvise-without-werror
trofi Nov 5, 2022
3c65029
Merge pull request #198672 from trofi/pythonFull-without-xlibsWrapper
trofi Nov 5, 2022
e54e568
Merge pull request #199229 from trofi/elfutils-update
trofi Nov 5, 2022
9ce5838
Merge pull request #199119 from trofi/aws-sdk-cpp-without-werror
trofi Nov 5, 2022
3298766
Merge pull request #199057 from trofi/cppunit-disable-Werror
trofi Nov 5, 2022
16b4c7f
python3Packages.protobuf: fix derivation version
oxalica Nov 5, 2022
53dfc25
python3Packages.sagamaker: relax protobuf and attrs
oxalica Oct 8, 2022
8bd4d92
nrfutil: relax protobuf
oxalica Oct 8, 2022
acc7ed9
Merge master into staging-next
github-actions[bot] Nov 5, 2022
3674d6a
Merge staging-next into staging
github-actions[bot] Nov 5, 2022
a12a004
expat: 2.4.9 -> 2.5.0
LeSuisse Nov 5, 2022
a0eb4f7
Merge pull request #199631 from kira-bruneau/python3Packages.pytest-d…
mweinelt Nov 5, 2022
712714e
Merge pull request #199618 from martinetd/systemd
flokli Nov 5, 2022
98a7c26
Merge pull request #193041 from vlinkz/calamaresmoduleupdate
mweinelt Nov 5, 2022
244c353
Merge pull request #199423 from sternenseemann/libXi-propagate-Xext
Artturin Nov 5, 2022
b33eacb
Merge #196909: stdenvBootstrapTools: fix cycle on aarch64-darwin
vcunat Nov 5, 2022
3d459eb
pixman: 0.38.4 -> 0.42.2
mweinelt Nov 5, 2022
910ce3a
Merge #199675: pixman: 0.38.4 -> 0.42.2
vcunat Nov 5, 2022
28e81d3
Merge #199689: expat: 2.4.9 -> 2.5.0
vcunat Nov 5, 2022
b15a637
Merge #199009: openssl_1_1: 1.1.1q -> 1.1.1s
vcunat Nov 5, 2022
d07db27
Merge #198813: tzdata: fix build on darwin
vcunat Nov 5, 2022
7a2cb87
Merge branch 'staging' into staging-next
vcunat Nov 5, 2022
a8cf689
Merge master into staging-next
github-actions[bot] Nov 5, 2022
a46c8c1
Merge master into staging-next
github-actions[bot] Nov 6, 2022
a9864a3
Merge master into staging-next
github-actions[bot] Nov 6, 2022
3d64cd3
python3Packages.PyICU: 2.9 -> 2.10.2
vcunat Nov 6, 2022
d9a7fcb
python3Packages.scikit-learn: 1.1.2 -> 1.1.3
FRidh Oct 27, 2022
e8dd554
Merge master into staging-next
github-actions[bot] Nov 6, 2022
6e2df29
Merge master into staging-next
github-actions[bot] Nov 6, 2022
e51ba60
Merge master into staging-next
github-actions[bot] Nov 7, 2022
5f9b3cb
Merge master into staging-next
github-actions[bot] Nov 7, 2022
19a0988
Merge master into staging-next
github-actions[bot] Nov 7, 2022
370c1a9
python3Packages.sh: disable flaky tests
wegank Nov 7, 2022
5134699
Merge pull request #199441 from wegank/sh-aarch64-darwin
mweinelt Nov 7, 2022
89c92a9
SDL2: 2.24.0 -> 2.24.1
jansol Oct 20, 2022
4db7dc7
SDL2: 2.24.1 -> 2.24.2
SuperSandro2000 Nov 7, 2022
625f479
Merge pull request #196854 from jansol/SDL2main-fix
mweinelt Nov 7, 2022
938efbf
Merge master into staging-next
github-actions[bot] Nov 7, 2022
8345eea
Merge master into staging-next
github-actions[bot] Nov 8, 2022
917a140
Merge master into staging-next
github-actions[bot] Nov 8, 2022
7e3e9bb
Merge #194111: python3Packages.protobuf: fix drv version
vcunat Nov 8, 2022
c35a930
libvirt-glib: fixup build after glib update
vcunat Nov 8, 2022
6e1c7f7
Merge master into staging-next
github-actions[bot] Nov 8, 2022
4517d65
Merge master into staging-next
github-actions[bot] Nov 8, 2022
8131620
Merge master into staging-next
github-actions[bot] Nov 9, 2022
d879bde
python310Packages.aiohttp: 3.8.1 -> 3.8.3
dotlambda Nov 9, 2022
5995b81
Merge master into staging-next
github-actions[bot] Nov 9, 2022
50d8cda
pixman: fix aarch64-darwin by disabling neon
reckenrode Nov 9, 2022
c5638a6
Merge master into staging-next
github-actions[bot] Nov 9, 2022
41b4865
home-assistant: relax aiohttp version constraint
dotlambda Nov 9, 2022
d990206
Merge master into staging-next
github-actions[bot] Nov 9, 2022
6bd5a8c
Merge pull request #200340 from dotlambda/aiohttp-3.8.3
mweinelt Nov 9, 2022
020ea91
Merge master into staging-next
github-actions[bot] Nov 10, 2022
72fad86
Merge master into staging-next
github-actions[bot] Nov 10, 2022
113bfd7
gnome.gnome-maps: patch a test failure
vcunat Nov 10, 2022
f3a9362
Merge master into staging-next
github-actions[bot] Nov 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/stdenv/stdenv.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,13 @@ Here are some more packages that provide a setup hook. Since the list of hooks i
Many other packages provide hooks, that are not part of `stdenv`. You can find
these in the [Hooks Reference](#chap-hooks).

### Compiler and Linker wrapper hooks {#compiler-linker-wrapper-hooks}

If the file `${cc}/nix-support/cc-wrapper-hook` exists, it will be run at the end of the [compiler wrapper](#cc-wrapper).
If the file `${binutils}/nix-support/post-link-hook` exists, it will be run at the end of the linker wrapper.
These hooks allow a user to inject code into the wrappers.
As an example, these hooks can be used to extract `extraBefore`, `params` and `extraAfter` which store all the command line arguments passed to the compiler and linker respectively.

## Purity in Nixpkgs {#sec-purity-in-nixpkgs}

*Measures taken to prevent dependencies on packages outside the store, and what you can do to prevent them.*
Expand Down
13 changes: 13 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,19 @@ signald -d /var/lib/signald/db \
Add udev rules for the Teensy family of microcontrollers.
</para>
</listitem>
<listitem>
<para>
The Qt QML disk cache is now disabled by default. This fixes a
long-standing issue where updating Qt/KDE apps would sometimes
cause them to crash or behave strangely without explanation.
Those concerned about the small (~10%) performance hit to
application startup can re-enable the cache (and expose
themselves to gremlins) by setting the envrionment variable
<literal>QML_FORCE_DISK_CACHE</literal> to
<literal>1</literal> using e.g. the
<literal>environment.sessionVariables</literal> NixOS option.
</para>
</listitem>
<listitem>
<para>
systemd-oomd is enabled by default. Depending on which systemd
Expand Down
8 changes: 8 additions & 0 deletions nixos/doc/manual/release-notes/rl-2211.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).

- Add udev rules for the Teensy family of microcontrollers.

- The Qt QML disk cache is now disabled by default. This fixes a
long-standing issue where updating Qt/KDE apps would sometimes cause
them to crash or behave strangely without explanation. Those concerned
about the small (~10%) performance hit to application startup can
re-enable the cache (and expose themselves to gremlins) by setting the
envrionment variable `QML_FORCE_DISK_CACHE` to `1` using e.g. the
`environment.sessionVariables` NixOS option.

- systemd-oomd is enabled by default. Depending on which systemd units have
`ManagedOOMSwap=kill` or `ManagedOOMMemoryPressure=kill`, systemd-oomd will
SIGKILL all the processes under the appropriate descendant cgroups when the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ in
calamares-nixos-extensions
# Needed for calamares QML module packagechooserq
libsForQt5.full
# Get list of locales
glibcLocales
];

# Support choosing from any locale
i18n.supportedLocales = [ "all" ];
}
15 changes: 0 additions & 15 deletions nixos/modules/services/x11/display-managers/sddm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,5 @@ in
# To enable user switching, allow sddm to allocate TTYs/displays dynamically.
services.xserver.tty = null;
services.xserver.display = null;

systemd.tmpfiles.rules = [
# Prior to Qt 5.9.2, there is a QML cache invalidation bug which sometimes
# strikes new Plasma 5 releases. If the QML cache is not invalidated, SDDM
# will segfault without explanation. We really tore our hair out for awhile
# before finding the bug:
# https://bugreports.qt.io/browse/QTBUG-62302
# We work around the problem by deleting the QML cache before startup.
# This was supposedly fixed in Qt 5.9.2 however it has been reported with
# 5.10 and 5.11 as well. The initial workaround was to delete the directory
# in the Xsetup script but that doesn't do anything.
# Instead we use tmpfiles.d to ensure it gets wiped.
# This causes a small but perceptible delay when SDDM starts.
"e ${config.users.users.sddm.home}/.cache - - - 0"
];
};
}
5 changes: 3 additions & 2 deletions pkgs/applications/audio/flac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

stdenv.mkDerivation rec {
pname = "flac";
version = "1.4.1";
version = "1.4.2";

src = fetchurl {
url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
# Official checksum is published at https://github.com/xiph/flac/releases/tag/${version}
sha256 = "91303c3e5dfde52c3e94e75976c0ab3ee14ced278ab8f60033a3a12db9209ae6";
sha256 = "sha256-4yLVih9I0j2d049DJnKGX2955zpvnMWl9X/KqD61qOQ=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -43,6 +43,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://xiph.org/flac/";
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
changelog = "https://xiph.org/flac/changelog.html";
platforms = platforms.all;
license = licenses.bsd3;
maintainers = with maintainers; [ ruuda ];
Expand Down
6 changes: 6 additions & 0 deletions pkgs/build-support/cc-wrapper/cc-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ fi
PATH="$path_backup"
# Old bash workaround, see above.

# if a cc-wrapper-hook exists, run it.
if [[ -e @out@/nix-support/cc-wrapper-hook ]]; then
compiler=@prog@
source @out@/nix-support/cc-wrapper-hook
fi

if (( "${NIX_CC_USE_RESPONSE_FILE:-@use_response_file_by_default@}" >= 1 )); then
exec @prog@ @<(printf "%q\n" \
${extraBefore+"${extraBefore[@]}"} \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/hooks/cargo-setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cargoSetupPostUnpackHook() {
cat ${tmp_config} >> .cargo/config

cat >> .cargo/config <<'EOF'
@rustTarget@
@cargoConfig@
EOF

echo "Finished cargoSetupPostUnpackHook"
Expand Down
36 changes: 29 additions & 7 deletions pkgs/build-support/rust/hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,37 @@ in {
# The `.nativeDrv` stanza works like nativeBuildInputs and ensures cross-compiling has the right version available.
diff = "${diffutils.nativeDrv or diffutils}/bin/diff";

# Target platform
rustTarget = ''
[target."${rust.toRustTarget stdenv.buildPlatform}"]
# We want to specify the correct crt-static flag for both
# the build and host platforms. This is important when the wanted
# value for crt-static does not match the defaults in the rustc target,
# like for pkgsMusl or pkgsCross.musl64; Upstream rustc still assumes
# that musl = static[1].
#
# By default, Cargo doesn't apply RUSTFLAGS when building build.rs
# if --target is passed, so the only good way to set crt-static for
# build.rs files is to use the unstable -Zhost-config Cargo feature.
# This allows us to specify flags that should be passed to rustc
# when building for the build platform. We also need to use
# -Ztarget-applies-to-host, because using -Zhost-config requires it.
#
# When doing this, we also have to specify the linker, or cargo
# won't pass a -C linker= argument to rustc. This will make rustc
# try to use its default value of "cc", which won't be available
# when cross-compiling.
#
# [1]: https://github.com/rust-lang/compiler-team/issues/422
cargoConfig = ''
[host]
"linker" = "${ccForBuild}"
${lib.optionalString (stdenv.buildPlatform.config != stdenv.hostPlatform.config) ''
[target."${shortTarget}"]
"linker" = "${ccForHost}"
''}
"rustflags" = [ "-C", "target-feature=${if stdenv.buildPlatform.isStatic then "+" else "-"}crt-static" ]

[target."${shortTarget}"]
"linker" = "${ccForHost}"
"rustflags" = [ "-C", "target-feature=${if stdenv.hostPlatform.isStatic then "+" else "-"}crt-static" ]

[unstable]
host-config = true
target-applies-to-host = true
'';
};
} ./cargo-setup-hook.sh) {};
Expand Down
19 changes: 15 additions & 4 deletions pkgs/data/misc/tzdata/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
{ lib, stdenv, fetchurl, buildPackages }:
{ lib, stdenv, fetchurl, fetchpatch, buildPackages }:

stdenv.mkDerivation rec {
pname = "tzdata";
version = "2022e";
version = "2022f";

srcs = [
(fetchurl {
url = "https://data.iana.org/time-zones/releases/tzdata${version}.tar.gz";
hash = "sha256-jeTCaG3OPRqukDBxnmgUkxwhai1eiR7D0zLm9lFq7M0=";
hash = "sha256-mZDXH2ddISVnuTH+iq4cq3An+J/vuKedgIppM6Z68AA=";
})
(fetchurl {
url = "https://data.iana.org/time-zones/releases/tzcode${version}.tar.gz";
hash = "sha256-1AKAJTmA6JFo5r5CdahSv5UhUk1HaE3jE1uaXKOHcQs=";
hash = "sha256-5FQ+kPhPkfqCgJ6piTAFL9vBOIDIpiPuOk6qQvimTBU=";
})
];

sourceRoot = ".";

patches = lib.optionals stdenv.hostPlatform.isWindows [
./0001-Add-exe-extension-for-MS-Windows-binaries.patch
] ++ [
(fetchpatch {
name = "fix-get-random-on-osx-1.patch";
url = "https://github.com/eggert/tz/commit/5db8b3ba4816ccb8f4ffeb84f05b99e87d3b1be6.patch";
hash = "sha256-FevGjiSahYwEjRUTvRY0Y6/jUO4YHiTlAAPixzEy5hw=";
})
(fetchpatch {
name = "fix-get-random-on-osx-2.patch";
url = "https://github.com/eggert/tz/commit/841183210311b1d4ffb4084bfde8fa8bdf3e6757.patch";
hash = "sha256-1tUTZBMT7V463P7eygpFS6/k5gTeeXumk5+V4gdKpEI=";
})
];

outputs = [ "out" "bin" "man" "dev" ];
Expand Down
9 changes: 9 additions & 0 deletions pkgs/desktops/gnome/apps/gnome-maps/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, meson
, ninja
, gettext
Expand Down Expand Up @@ -65,6 +66,14 @@ stdenv.mkDerivation rec {
libsoup_3
];

patches = [
(fetchpatch {
name = "timeTest.patch";
url = "https://gitlab.gnome.org/GNOME/gnome-maps/-/commit/bec3d2f26de1b3a8c8b7e603f6d6a46c853426fa.diff";
sha256 = "sha256-7/ogIDG0piZOPaCPX4nUA3jHI7RGTd2KMZsp8z0XLcc=";
})
];

postPatch = ''
# The .service file isn't wrapped with the correct environment
# so misses GIR files when started. By re-pointing from the gjs
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/10/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation {
"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
"-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
"-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
] ++ lib.optionals (haveLibc && !isMusl) [
] ++ lib.optionals (haveLibc && stdenv.hostPlatform.isGnu) [
"-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include"
] ++ lib.optionals (useLLVM || bareMetal || isMusl) [
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/11/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation {
"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
"-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
"-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
] ++ lib.optionals (haveLibc && !isMusl) [
] ++ lib.optionals (haveLibc && stdenv.hostPlatform.isGnu) [
"-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include"
] ++ lib.optionals (useLLVM || bareMetal || isMusl || isNewDarwinBootstrap) [
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/12/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation {
"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
"-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
"-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
] ++ lib.optionals (haveLibc && !isMusl) [
] ++ lib.optionals (haveLibc && stdenv.hostPlatform.isGnu) [
"-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include"
] ++ lib.optionals (useLLVM || bareMetal || isMusl) [
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/13/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdenv.mkDerivation {
"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
"-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
"-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
] ++ lib.optionals (haveLibc && !isMusl) [
] ++ lib.optionals (haveLibc && stdenv.hostPlatform.isGnu) [
"-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include"
] ++ lib.optionals (useLLVM || bareMetal || isMusl || isAarch64) [
"-DCOMPILER_RT_BUILD_LIBFUZZER=OFF"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/14/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stdenv.mkDerivation {
"-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON"
"-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}"
"-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}"
] ++ lib.optionals (haveLibc && !isMusl) [
] ++ lib.optionals (haveLibc && stdenv.hostPlatform.isGnu) [
"-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include"
] ++ lib.optionals (useLLVM || bareMetal || isMusl) [
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/compilers/rust/cargo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,5 @@ rustPlatform.buildRustPackage {
maintainers = with maintainers; [ retrry ];
license = [ licenses.mit licenses.asl20 ];
platforms = platforms.unix;
# weird segfault in a build script
broken = stdenv.targetPlatform.isMusl && !stdenv.targetPlatform.isStatic;
};
}
5 changes: 2 additions & 3 deletions pkgs/development/interpreters/python/cpython/2.7/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, openssl
, readline
, sqlite
, tcl ? null, tk ? null, tix ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
, tcl ? null, tk ? null, tix ? null, libX11 ? null, x11Support ? false
, zlib
, self
, configd, coreutils
Expand Down Expand Up @@ -36,7 +36,6 @@

assert x11Support -> tcl != null
&& tk != null
&& xlibsWrapper != null
&& libX11 != null;

assert lib.assertMsg (enableOptimizations -> (!stdenv.cc.isClang))
Expand Down Expand Up @@ -234,7 +233,7 @@ let
++ optional (stdenv.hostPlatform.isCygwin || stdenv.hostPlatform.isAarch64) libffi
++ optional stdenv.hostPlatform.isCygwin expat
++ [ db gdbm ncurses sqlite readline ]
++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
++ optionals x11Support [ tcl tk libX11 ]
++ optional (stdenv.isDarwin && configd != null) configd;
nativeBuildInputs =
[ autoreconfHook ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
# # pythonRemoveDeps = true;
# …
# }
#
# IMPLEMENTATION NOTES:
#
# The "Requires-Dist" dependency specification format is described in PEP 508.
# Examples that the regular expressions in this hook needs to support:
#
# Requires-Dist: foo
# -> foo
# Requires-Dist: foo[optional]
# -> foo[optional]
# Requires-Dist: foo[optional]~=1.2.3
# -> foo[optional]
# Requires-Dist: foo[optional, xyz] (~=1.2.3)
# -> foo[optional, xyz]
# Requires-Dist: foo[optional]~=1.2.3 ; os_name = "posix"
# -> foo[optional] ; os_name = "posix"
#
# Currently unsupported: URL specs (foo @ https://example.com/a.zip).

_pythonRelaxDeps() {
local -r metadata_file="$1"
Expand All @@ -30,11 +48,11 @@ _pythonRelaxDeps() {
return
elif [[ "$pythonRelaxDeps" == 1 ]]; then
sed -i "$metadata_file" -r \
-e 's/(Requires-Dist: \S*) \(.*\)/\1/'
-e 's/(Requires-Dist: [a-zA-Z0-9_.-]+\s*(\[[^]]+\])?)[^;]*(;.*)?/\1\3/'
else
for dep in $pythonRelaxDeps; do
sed -i "$metadata_file" -r \
-e "s/(Requires-Dist: $dep) \(.*\)/\1/"
-e "s/(Requires-Dist: $dep\s*(\[[^]]+\])?)[^;]*(;.*)?/\1\3/"
done
fi
}
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/SDL2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ with lib;

stdenv.mkDerivation rec {
pname = "SDL2";
version = "2.24.0";
version = "2.24.2";

src = fetchurl {
url = "https://www.libsdl.org/release/${pname}-${version}.tar.gz";
sha256 = "sha256-keTDSxdo+S05mweOFxRIxq8Yyv2nQ5h+0gZKKJVNbZc=";
sha256 = "sha256-s17wqAKwnZDtOt0NysDpWCCAQgKRT1u3sP63EPGhMp8=";
};
dontDisableStatic = if withStatic then 1 else 0;
outputs = [ "out" "dev" ];
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/libraries/aws-sdk-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ stdenv.mkDerivation rec {
];

postPatch = ''
# Avoid blanket -Werror to evade build failures on less
# tested compilers.
substituteInPlace cmake/compiler_settings.cmake \
--replace '"-Werror"' ' '

# Missing includes for GCC11
sed '5i#include <thread>' -i \
aws-cpp-sdk-cloudfront-integration-tests/CloudfrontOperationTest.cpp \
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/cppunit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "19qpqzy66bq76wcyadmi3zahk5v1ll2kig1nvg96zx9padkcdic9";
};

# Avoid blanket -Werror to evade build failures on less
# tested compilers.
configureFlags = [ "--disable-werror" ];

meta = with lib; {
homepage = "https://freedesktop.org/wiki/Software/cppunit/";
description = "C++ unit testing framework";
Expand Down
Loading