Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
876cc63
libipt: 2.0.4 -> 2.0.5
r-ryantm Feb 12, 2022
d5cf13f
avahi: format the expression
jtojnar May 21, 2022
c55e200
avahi: drop intltool & outdated flags
jtojnar May 21, 2022
14dafc1
avahi: Simplify pkg-config cross fix
jtojnar May 21, 2022
8fa4e66
avahi: simplify path handling
jtojnar May 21, 2022
6a803b0
bind: remove broken configure flags
ajs124 May 26, 2022
1c70b69
makeWrapper,makeBinaryWrapper: implement `--append-flags`
ncfavier May 11, 2022
25c990a
libtiff: 4.3.0 -> 4.4.0
kevinmehall Jun 2, 2022
5dcb09d
freeimage: Add patch to fix build with libtiff 4.4.0
kevinmehall Jun 2, 2022
6ffe410
freeimage: cleanup suggestions from code review
kevinmehall Jun 3, 2022
c489718
python3Packages.pillow: Add patch to fix failing test with libtiff 4.4.0
kevinmehall Jun 2, 2022
088b291
libidn2: hack to avoid referencing bootstrap tools
vcunat Jun 1, 2022
fd84f6b
sane-backends: fix udev rule generation
7FM Jun 5, 2022
df640d4
valgrind: fix build error for armv7l
misuzu Jun 6, 2022
295bb5d
libdrm: 2.4.110 -> 2.4.111
primeos Jun 6, 2022
8807cab
libffi: Pass --build and --host to configure script
zhaofengli Dec 17, 2021
61223d5
pythonRelaxDepsHook: fix usage in packages with `-` in pname
thiagokokada Jun 7, 2022
0d71f8a
pysigma-backend-insightidr: use pythonRelaxDepsHook
thiagokokada Jun 7, 2022
05373e1
libnetfilter_cthelper: 1.0.0 -> 1.0.1
Izorkin May 15, 2022
d5d49c4
libnetfilter_cttimeout: 1.0.0 -> 1.0.1
Izorkin May 15, 2022
131fce4
iptables: 1.8.7 -> 1.8.8
Izorkin May 15, 2022
6dd6947
fontconfig: 2.13.94 → 2.14.0
jtojnar Jun 9, 2022
e91b567
cc-wrapper: Use case statements instead of bunch of if/elif checks
mmlb Jun 7, 2022
19b6ccd
cc-wrapper: Allow for override of -target for clang/clang++
mmlb Jun 3, 2022
2294dac
python3Packages.setuptools: add distutils patch to support cross-comp…
lopsided98 May 17, 2022
cf32ea0
unbound: 1.14.0 -> 1.16.0
ajs124 Jun 9, 2022
eb31cd0
avahi: remove Qt 4 support
jtojnar Jun 10, 2022
701a79a
lsof: pull fix pending upstream inclusion for -fno-common toolchains
trofi Jun 10, 2022
fefca2f
libjxl: Gate building docs behind setting
D4ndellion Jun 5, 2022
3977241
libaom: Add support for butteraugli and vmaf tunes
D4ndellion Feb 12, 2022
7bb5b6c
python310Packages.hatchling: 0.25.0 -> 1.0.0 (#173450)
ofek Jun 10, 2022
faa11dc
Merge staging-next into staging
github-actions[bot] Jun 10, 2022
dce3204
Merge pull request #176531 from primeos/libdrm
primeos Jun 10, 2022
060b747
Merge staging-next into staging
github-actions[bot] Jun 11, 2022
7ecc64f
Merge pull request #176528 from misuzu/valgrind-armv7l
SuperSandro2000 Jun 11, 2022
6e62922
meson: add mesonEmulatorHook
Artturin Jun 7, 2022
163ffce
prelink: 20130503 -> unstable-2019-06-24 cross_prelink branch
Artturin Jun 7, 2022
79d349b
gobject-introspection: support cross-compilation
Artturin Jun 7, 2022
41f8722
gobject-introspection: add artturin as maintainer
Artturin Jun 8, 2022
944781b
gobject-introspection: revert patch to ignore return codes from ldd
Artturin Jun 9, 2022
1283dac
Merge staging-next into staging
github-actions[bot] Jun 11, 2022
80a0760
librsvg: 2.54.3 -> 2.54.4
r-ryantm Jun 11, 2022
8e73fa1
fuse3: 3.10.5 -> 3.11.0
primeos Jun 11, 2022
0da898c
glibcLocalesUtf8: init at 2.34
trofi Jun 11, 2022
ffb456a
fetchzip: force UTF-8 compatibel locale to unpack non-ASCII symbols
trofi Jun 4, 2022
b543ad5
eduli.src: update hash change with fetchzip update
trofi Jun 11, 2022
d40b996
Merge staging-next into staging
github-actions[bot] Jun 11, 2022
ce66032
Merge pull request #159461 from dali99/libaom-tunes
SuperSandro2000 Jun 11, 2022
6920e6d
f2fs-tools: 1.14.0 -> 1.15.0
r-ryantm May 26, 2022
a92aaf5
Merge pull request #173913 from jtojnar/avahi-cleanup
jtojnar Jun 11, 2022
b82af9f
Merge pull request #176412 from 7FM/7FM-patch-1
symphorien Jun 11, 2022
d1848e6
Merge pull request #177102 from helsinki-systems/upd/unbound
mweinelt Jun 11, 2022
739ab38
coq_8_13.src, coq_8_14.src, coq_8_15.src: update hash change with fet…
trofi Jun 11, 2022
53d99f8
Merge staging-next into staging
github-actions[bot] Jun 11, 2022
49f69d1
rust-cbindgen: 0.24.2 -> 0.24.3
mweinelt Jun 11, 2022
6e52756
Merge pull request #177333 from mweinelt/rust-cbindgen
mweinelt Jun 11, 2022
f82867c
Merge staging-next into staging
github-actions[bot] Jun 12, 2022
a3f2567
libinput: 1.20.1 -> 1.21.0
r-ryantm Jun 12, 2022
620cb7c
Merge staging-next into staging
github-actions[bot] Jun 12, 2022
9228c0a
libjxl: Move brotli and libhwy to propagatedBuildInputs
D4ndellion Jun 12, 2022
8267944
libaom: move libvmaf and libjxl to propagatedBuildInputs
D4ndellion Jun 12, 2022
6614d56
Merge pull request #177374 from dali99/libaom-pbi
trofi Jun 12, 2022
b108b8c
Merge pull request #177271 from primeos/fuse3
primeos Jun 12, 2022
299538e
Merge pull request #172769 from ncfavier/wrappers-append-args
thiagokokada Jun 12, 2022
15491e7
pythonRelaxDepsHook: correct handles multiple wheels
thiagokokada Jun 12, 2022
1a11501
libxkbcommon: 1.4.0 -> 1.4.1
primeos Jun 12, 2022
6adaaf8
file: 5.41 -> 5.42 (#177347)
zowoq Jun 12, 2022
3945b41
Merge staging-next into staging
github-actions[bot] Jun 12, 2022
ce62ff7
Merge pull request #176464 from Artturin/gobjecfix
Artturin Jun 12, 2022
fdcac7b
Merge staging-next into staging
github-actions[bot] Jun 12, 2022
4c5dd63
Merge staging-next into staging
github-actions[bot] Jun 12, 2022
da07bce
Merge staging-next into staging
github-actions[bot] Jun 13, 2022
8132fb3
vala: fix cross
Artturin Jun 12, 2022
69afbe1
Merge pull request #177441 from Artturin/fixcross2
Artturin Jun 13, 2022
0fd678e
Merge pull request #173435 from lopsided98/setuptools-cross
Artturin Jun 13, 2022
cd797a5
Merge staging-next into staging
github-actions[bot] Jun 13, 2022
fa46b52
Merge staging-next into staging
github-actions[bot] Jun 13, 2022
15c142e
Merge staging-next into staging
github-actions[bot] Jun 13, 2022
afbc154
Merge pull request #177386 from primeos/libxkbcommon
primeos Jun 13, 2022
52e36bc
libseccomp: 2.5.3 -> 2.5.4
zowoq Jun 9, 2022
7eb0857
Merge staging-next into staging
github-actions[bot] Jun 14, 2022
99aaddc
ethtool: 5.17 -> 5.18
r-ryantm Jun 14, 2022
886a17f
Merge staging-next into staging
github-actions[bot] Jun 14, 2022
179051c
Merge staging-next into staging
github-actions[bot] Jun 14, 2022
08615ec
python310: 3.10.4 -> 3.10.5
mweinelt Jun 14, 2022
659ec6f
Merge staging-next into staging
github-actions[bot] Jun 14, 2022
d56680e
Merge pull request #177643 from mweinelt/python3.10.5
mweinelt Jun 14, 2022
8c2f449
Merge staging-next into staging
github-actions[bot] Jun 15, 2022
06a01a6
Merge pull request #177590 from r-ryantm/auto-update/ethtool
AndersonTorres Jun 15, 2022
7d845ac
Merge staging-next into staging
github-actions[bot] Jun 15, 2022
0fdc72b
cc-wrapper: Add clang specific options to clang specific file
mmlb Jun 13, 2022
6cba7d4
Merge staging-next into staging
github-actions[bot] Jun 15, 2022
206b2cf
Merge pull request #176253 from trofi/fetchzip-forced-UTF-8
trofi Jun 15, 2022
bb52e84
Merge pull request #174755 from helsinki-systems/clean/bind9
Mic92 Jun 15, 2022
e23e71f
Merge pull request #176152 from mmlb/cc-wrapper-allow-target-override
Ericson2314 Jun 15, 2022
64fc13f
setup.sh: use -exec rather than -execdir
Jun 15, 2022
912eb00
linuxHeaders: backport fix to restore __bitwise__ define
trofi Jun 15, 2022
e0692df
python310Packages.ipython: 8.2.0 -> 8.4.0
dotlambda Jun 12, 2022
ca38c61
Merge staging-next into staging
github-actions[bot] Jun 16, 2022
a90acc4
Merge staging-next into staging
github-actions[bot] Jun 16, 2022
5f51c12
Merge pull request #176721 from thiagokokada/pythonRelaxDepsHook-fix
thiagokokada Jun 16, 2022
ec85a5d
Merge staging-next into staging
github-actions[bot] Jun 16, 2022
e04ac13
oniguruma: 6.9.7.1 -> 6.9.8
kilianar Jun 16, 2022
d9775e9
p11-kit: add path to openSUSE certificate store
Jun 2, 2022
40c7edc
coreutils: use SRI hash format
AndersonTorres Jun 12, 2022
0b60b10
python310Packages.requests: 2.27.1 -> 2.28.0
SuperSandro2000 Jun 9, 2022
8c938c7
Merge staging-next into staging
github-actions[bot] Jun 16, 2022
2ee6526
Cosmetical: 80-char fill the opening paragraph of all-packages.nix
AndersonTorres Jun 16, 2022
46b42d9
Merge staging-next into staging
github-actions[bot] Jun 16, 2022
650410e
Merge pull request #177096 from SuperSandro2000/python310Packages.req…
SuperSandro2000 Jun 16, 2022
e418cc4
Move uclibc to uclibc-ng
AndersonTorres Jun 16, 2022
9495796
uclibc-ng: 1.0.38 -> 1.0.41
AndersonTorres Jun 16, 2022
c1136b3
postgresql_14: 14.3 -> 14.4 (#177903)
timothyklim Jun 17, 2022
e5fe188
Merge pull request #177928 from AndersonTorres/new-uclibc-ng
AndersonTorres Jun 17, 2022
5e3a16c
Merge staging-next into staging
github-actions[bot] Jun 17, 2022
9ddf754
Merge pull request #177876 from kilianar/oniguruma
SuperSandro2000 Jun 17, 2022
8ac32ac
Merge staging-next into staging
github-actions[bot] Jun 17, 2022
db60718
Merge pull request #177078 from jtojnar/fc
jtojnar Jun 17, 2022
5ffd19d
Merge #175785: libidn2: hack to avoid referencing bootstrap tools
vcunat Jun 17, 2022
894fd08
Merge pull request #177141 from trofi/fix-fno-common-for-lsof
trofi Jun 17, 2022
f40a252
Merge staging-next into staging
github-actions[bot] Jun 18, 2022
6eb689d
cc-wrapper: fix typo in shell script
Jun 18, 2022
f93c47b
ruby: enable O3 optimization
Mic92 Jun 1, 2022
fe8f468
Revert "ruby: enable O3 optimization"
Mic92 Jun 18, 2022
49145d3
Revert "Revert "ruby: enable O3 optimization""
Mic92 Jun 18, 2022
514f247
Merge pull request #178102 from Mic92/ruby
Mic92 Jun 18, 2022
bafa0bd
Merge pull request #177807 from trofi/fix-__bitwise__-on-linux-headers
trofi Jun 18, 2022
358f18f
Merge staging-next into staging
github-actions[bot] Jun 18, 2022
643104f
srb2: openmpt123 -> libopenmpt
OPNA2608 Jun 13, 2022
9274b44
Merge staging-next into staging
github-actions[bot] Jun 18, 2022
8c7f102
Merge staging-next into staging
github-actions[bot] Jun 18, 2022
9f3b351
Merge staging-next into staging
github-actions[bot] Jun 19, 2022
312928f
coreutils: refactor the expression
AndersonTorres Jun 17, 2022
5cbc278
Merge staging-next into staging
github-actions[bot] Jun 19, 2022
9e84510
help2man: 1.49.1 -> 1.49.2
trofi Jun 19, 2022
650cf38
Merge pull request #159491 from r-ryantm/auto-update/libipt
trofi Jun 19, 2022
c04f364
Merge #173114: iptables: 1.8.7 -> 1.8.8 (into staging)
vcunat Jun 19, 2022
29b622d
Merge #175986: libtiff: 4.3.0 -> 4.4.0 (into staging)
vcunat Jun 19, 2022
2b5b3b4
Merge pull request #178210 from trofi/update-help2man
trofi Jun 19, 2022
426faa7
Merge master into staging-next
github-actions[bot] Jun 19, 2022
f84a59f
Merge staging-next into staging
github-actions[bot] Jun 19, 2022
896188a
Merge master into staging-next
github-actions[bot] Jun 19, 2022
47ced4f
Merge staging-next into staging
github-actions[bot] Jun 19, 2022
78b2bf5
Merge master into staging-next
github-actions[bot] Jun 20, 2022
84e1fee
Merge staging-next into staging
github-actions[bot] Jun 20, 2022
db48793
Merge pull request #177349 from AndersonTorres/coreutils-sri-hash
AndersonTorres Jun 20, 2022
e4515da
buildGoModule: passing CGO_ENABLED explicitly
NickCao Jun 14, 2022
1f954d5
Merge master into staging-next
github-actions[bot] Jun 20, 2022
0de0efb
Merge staging-next into staging
github-actions[bot] Jun 20, 2022
4618729
aws-sam-translator: 1.42.0 -> 1.46.0
lrworth Jun 20, 2022
b1cc6af
aws-sam-cli: 1.37.0 -> 1.52.0
lrworth Jun 20, 2022
a25847d
awscli2: 2.7.8 -> 2.7.9
lrworth Jun 20, 2022
439dae5
Merge master into staging-next
github-actions[bot] Jun 20, 2022
8637d8e
Merge staging-next into staging
github-actions[bot] Jun 20, 2022
bf15544
Merge pull request #178302 from lrworth/update-aws-tools
bhipple Jun 20, 2022
922318a
Merge master into staging-next
github-actions[bot] Jun 20, 2022
8c4cc99
Merge staging-next into staging
github-actions[bot] Jun 20, 2022
ef2a9cb
Merge pull request #178084 from KAction/fix-darwin-bootstrap
trofi Jun 20, 2022
90a8d68
sphinx: remove whitespace from phase
kamadorueda Jun 20, 2022
324aade
Merge master into staging-next
github-actions[bot] Jun 21, 2022
3746a49
Merge staging-next into staging
github-actions[bot] Jun 21, 2022
caf4b3c
Merge master into staging-next
github-actions[bot] Jun 21, 2022
8fe94dc
Merge staging-next into staging
github-actions[bot] Jun 21, 2022
d8747e5
Merge master into staging-next
github-actions[bot] Jun 21, 2022
5681395
Merge staging-next into staging
github-actions[bot] Jun 21, 2022
d017734
python3Packages.uharfbuzz: fix on Darwin
lovesegfault Jun 20, 2022
3873ebb
Merge pull request #178359 from lovesegfault/darwin-fix-uharfbuzz
lovesegfault Jun 21, 2022
801bfca
Merge pull request #178378 from kamadorueda/ws
SuperSandro2000 Jun 21, 2022
0c21382
openssl_1_1: 1.1.1o -> 1.1.1p
mweinelt Jun 21, 2022
deb8ef1
openssl_3_0: 3.0.3 -> 3.0.4
mweinelt Jun 21, 2022
77c2221
Merge master into staging-next
github-actions[bot] Jun 21, 2022
cea2503
Merge staging-next into staging
github-actions[bot] Jun 21, 2022
9b42f64
autoconf264: fix depends for strictDeps = true
trofi Jun 21, 2022
6f0fb01
gumbo: fix depends for strictDeps = true
trofi Jun 21, 2022
3ca9a6d
automake111x: fix depends for strictDeps = true
trofi Jun 21, 2022
7060aeb
Merge master into staging-next
github-actions[bot] Jun 22, 2022
30c9243
Merge staging-next into staging
github-actions[bot] Jun 22, 2022
2215ea1
Merge pull request #178496 from trofi/strictDeps-for-gumbo
SuperSandro2000 Jun 22, 2022
4f1c143
Merge pull request #178484 from trofi/strictDeps-for-autoconf264
SuperSandro2000 Jun 22, 2022
d23a26e
Merge pull request #178499 from trofi/strictDeps-for-automake111x
SuperSandro2000 Jun 22, 2022
a560d3d
Merge master into staging-next
github-actions[bot] Jun 22, 2022
108fc5c
Merge staging-next into staging
github-actions[bot] Jun 22, 2022
20a0c77
Merge master into staging-next
github-actions[bot] Jun 22, 2022
2d797ca
Merge staging-next into staging
github-actions[bot] Jun 22, 2022
8942163
Merge pull request #175925 from alternateved/add-opensuse-certificate…
rnhmjoj Jun 22, 2022
ced1307
Merge master into staging-next
github-actions[bot] Jun 22, 2022
9a2405d
Merge staging-next into staging
github-actions[bot] Jun 22, 2022
a4afd6a
python310Packages.bottle: 0.12.19 -> 0.12.21
dotlambda Jun 21, 2022
97bf76b
setup.sh: use six `X` characters in `mktemp` invocation
Jun 22, 2022
fbf7716
Merge pull request #178462 from mweinelt/openssl
Lassulus Jun 22, 2022
0d77d31
Merge pull request #178506 from dotlambda/bottle-0.12.21
SuperSandro2000 Jun 22, 2022
c53c046
Merge master into staging-next
github-actions[bot] Jun 23, 2022
506a80a
Merge staging-next into staging
github-actions[bot] Jun 23, 2022
bf55079
Merge pull request #177586 from OPNA2608/fix/srb2_openmpt123_libopenmpt
marsam Jun 23, 2022
f104ffc
Merge pull request #177789 from a-m-joseph/pr/setup/busyboxfind
Mindavi Jun 23, 2022
adafa1c
Merge pull request #178626 from a-m-joseph/pr/168413fallout/mktemp
Mindavi Jun 23, 2022
1daef39
Merge master into staging-next
github-actions[bot] Jun 23, 2022
e78a0f5
Merge staging-next into staging
github-actions[bot] Jun 23, 2022
f344b4d
gnutls: 3.7.3 -> 3.7.6
vcunat Jun 23, 2022
0ccd66c
Merge #178687: gnutls: 3.7.3 -> 3.7.6 (into staging)
vcunat Jun 23, 2022
3c49886
Merge #177367: libinput: 1.20.1 -> 1.21.0 (into staging)
vcunat Jun 23, 2022
c605c54
Merge #151065: libffi: Pass --build and --host to configure
vcunat Jun 23, 2022
3e94e51
Merge branch 'staging' into staging-next
vcunat Jun 23, 2022
62b0d79
Merge master into staging-next
github-actions[bot] Jun 23, 2022
6e20d75
python310Packages.pip: 22.0.4 -> 22.1.2
06kellyjac Jun 23, 2022
bb34355
Merge pull request #178732 from 06kellyjac/pip
mweinelt Jun 23, 2022
4f79f81
Merge master into staging-next
github-actions[bot] Jun 23, 2022
66528a4
python3Packages.uharfbuzz: only add ApplicationServices if stdenv.isD…
lovesegfault Jun 23, 2022
5b9ee17
Merge master into staging-next
github-actions[bot] Jun 24, 2022
880ae7c
Merge master into staging-next
github-actions[bot] Jun 24, 2022
def2d62
Merge master into staging-next
github-actions[bot] Jun 24, 2022
91526a4
Merge pull request #178795 from lovesegfault/darwin-fix-uharfbuzz-redux
lovesegfault Jun 24, 2022
c3dedde
Merge master into staging-next
github-actions[bot] Jun 24, 2022
192fdf1
Merge master into staging-next
github-actions[bot] Jun 25, 2022
ae24e28
Merge master into staging-next
github-actions[bot] Jun 25, 2022
62b079e
Merge master into staging-next
github-actions[bot] Jun 25, 2022
900f6d9
Merge master into staging-next
github-actions[bot] Jun 25, 2022
aa36d9e
Merge master into staging-next
github-actions[bot] Jun 26, 2022
55b22a1
Merge master into staging-next
github-actions[bot] Jun 26, 2022
672046d
gnutls: enable Security framework on darwin (PR #179078)
vcunat Jun 26, 2022
d77dd87
Merge master into staging-next
github-actions[bot] Jun 26, 2022
fc87d5f
Merge master into staging-next
github-actions[bot] Jun 26, 2022
b1e76b5
Merge master into staging-next
github-actions[bot] Jun 27, 2022
058fe90
Merge master into staging-next
github-actions[bot] Jun 27, 2022
8fb70de
gnutls: [darwin] propagate the security framework (#179298)
vcunat Jun 27, 2022
9790d25
home-assistant: relax requests
mweinelt Jun 27, 2022
86c34bf
Merge master into staging-next
github-actions[bot] Jun 27, 2022
3a95230
Merge master into staging-next
github-actions[bot] Jun 27, 2022
62b05d9
Merge remote-tracking branch 'origin/master' into staging-next
mweinelt Jun 27, 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
18 changes: 18 additions & 0 deletions doc/stdenv/cross-compilation.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@ Add the following to your `mkDerivation` invocation.
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
```

#### Package using Meson needs to run binaries for the host platform during build. {#cross-meson-runs-host-code}

Add `mesonEmulatorHook` cross conditionally to `nativeBuildInputs`.

e.g.

```
nativeBuildInputs = [
meson
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
mesonEmulatorHook
];
```

Example of an error which this fixes.

`[Errno 8] Exec format error: './gdk3-scan'`

## Cross-building packages {#sec-cross-usage}

Nixpkgs can be instantiated with `localSystem` alone, in which case there is no cross-compiling and everything is built by and for that system, or also with `crossSystem`, in which case packages run on the latter, but all building happens on the former. Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section. As mentioned above, `lib.systems.examples` has some platforms which are used as arguments for these parameters in practice. You can use them programmatically, or on the command line:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/sane/backends/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ stdenv.mkDerivation {

in ''
mkdir -p $out/etc/udev/rules.d/
./tools/sane-desc -m udev > $out/etc/udev/rules.d/49-libsane.rules || \
./tools/sane-desc -m udev+hwdb -s doc/descriptions:doc/descriptions-external > $out/etc/udev/rules.d/49-libsane.rules || \
cp tools/udev/libsane.rules $out/etc/udev/rules.d/49-libsane.rules
# the created 49-libsane references /bin/sh
substituteInPlace $out/etc/udev/rules.d/49-libsane.rules \
Expand Down
16 changes: 6 additions & 10 deletions pkgs/applications/networking/instant-messengers/teams/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ let
];

preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${coreutils}/bin:${gawk}/bin")
gappsWrapperArgs+=(
--prefix PATH : "${coreutils}/bin:${gawk}/bin"

# fix for https://docs.microsoft.com/en-us/answers/questions/298724/open-teams-meeting-link-on-linux-doens39t-work.html?childToView=309406#comment-309406
--append-flags '--disable-namespace-sandbox --disable-setuid-sandbox'
)
'';


Expand Down Expand Up @@ -119,15 +124,6 @@ let
echo "Adding runtime dependencies to RPATH of Node module $mod"
patchelf --set-rpath "$runtime_rpath:$mod_rpath" "$mod"
done;

# fix for https://docs.microsoft.com/en-us/answers/questions/298724/open-teams-meeting-link-on-linux-doens39t-work.html?childToView=309406#comment-309406
wrapped=$out/bin/.teams-old
mv "$out/bin/teams" "$wrapped"
cat > "$out/bin/teams" << EOF
#! ${runtimeShell}
exec $wrapped "\$@" --disable-namespace-sandbox --disable-setuid-sandbox
EOF
chmod +x "$out/bin/teams"
'';
};

Expand Down
18 changes: 9 additions & 9 deletions pkgs/applications/science/logic/coq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ let
"8.12.0".sha256 = "18dc7k0piv6v064zgdadpw6mkkxk7j663hb3svgj5236fihjr0cz";
"8.12.1".sha256 = "1rkcyjjrzcqw9xk93hsq0vvji4f8r5iq0f739mghk60bghkpnb7q";
"8.12.2".sha256 = "18gscfm039pqhq4msq01nraig5dm9ab98bjca94zldf8jvdv0x2n";
"8.13.0".sha256 = "0sjbqmz6qcvnz0hv87xha80qbhvmmyd675wyc5z4rgr34j2l1ymd";
"8.13.1".sha256 = "0xx2ns84mlip9bg2mkahy3pmc5zfcgrjxsviq9yijbzy1r95wf0n";
"8.13.2".sha256 = "1884vbmwmqwn9ngibax6dhnqh4cc02l0s2ajc6jb1xgr0i60whjk";
"8.14.0".sha256 = "04y2z0qyvag66zanfyc3f9agvmzbn4lsr0p1l7ck6yjhqx7vbm17";
"8.14.1".sha256 = "0sx78pgx0qw8v7v2r32zzy3l161zipzq95iacda628girim7psnl";
"8.15.0".sha256 = "sha256:1ma76wfrpfsl72yh10w1ys2a0vi0mdc2jc79kdc8nrmxkhpw1nxx";
"8.15.1".sha256 = "sha256:1dsa04jzkx5pw69pmxn0l55q4w88lg6fvz7clbga0bazzsfnsgd6";
"8.15.2".sha256 = "sha256:0gn8dz69scxnxaq6ycb3x34bjfk9wlp1y2xn8w69kg9fm4b6gkc7";
"8.16+rc1".sha256 = "sha256-dU+E0Mz7MVntbQIeG9I59ANBaHaXXSrjCRdoqZ5TO60=";
"8.13.0".sha256 = "1l2c63vskp8kiyxiyi5rpgbmnv67ysn3y4lybd6nj0li5llibifi";
"8.13.1".sha256 = "15drjcqhsgwqnv02bbidyhk316ypyhz1pxfz2gwsalci9svhkz0v";
"8.13.2".sha256 = "14d4alp35hngvga9m7cfp5d1nl62xdj0nm4811f2jjblk86gxxk4";
"8.14.0".sha256 = "0yxjx9kq9bfpk31dc1c6a0pz0827fz7jmrcwwd4n7dc07yi0arq8";
"8.14.1".sha256 = "0xdqiabgm4lrm6d7lw544zd8xwb1cdcavsxvwwlqq6yid2rl2yli";
"8.15.0".sha256 = "sha256:0q7jl3bn0d1v9cwdkxykw4frccww6wbh1p8hdrfqw489mkxmh5jh";
"8.15.1".sha256 = "sha256:1janvmnk3czimp0j5qmnfwx6509vhpjc2q7lcza1bc6dm6kn8n42";
"8.15.2".sha256 = "sha256:0qibbvzrhsvs6w3zpkhyclndp29jnr6bs9i5skjlpp431jdjjfqd";
"8.16+rc1".sha256 = "sha256-hmZQ6rFIOZJwnAh23nKScJ3Nn+xqDRn5q2Tn82igpYE=";
};
releaseRev = v: "V${v}";
fetched = import ../../../../build-support/coq/meta-fetch/default.nix
Expand Down
11 changes: 11 additions & 0 deletions pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
needsTarget=true

for p in "${params[@]}"; do
case "$p" in
-target | --target=*) needsTarget=false ;;
esac
done

if $needsTarget; then
extraBefore+=(-target @defaultTarget@)
fi
87 changes: 40 additions & 47 deletions pkgs/build-support/cc-wrapper/cc-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,23 @@ nParams=${#params[@]}
while (( "$n" < "$nParams" )); do
p=${params[n]}
p2=${params[n+1]:-} # handle `p` being last one
if [ "$p" = -c ]; then
dontLink=1
elif [ "$p" = -S ]; then
dontLink=1
elif [ "$p" = -E ]; then
dontLink=1
elif [ "$p" = -E ]; then
dontLink=1
elif [ "$p" = -M ]; then
dontLink=1
elif [ "$p" = -MM ]; then
dontLink=1
elif [[ "$p" = -x && "$p2" = *-header ]]; then
dontLink=1
elif [[ "$p" = -x && "$p2" = c++* && "$isCxx" = 0 ]]; then
isCxx=1
elif [ "$p" = -nostdlib ]; then
cxxLibrary=0
elif [ "$p" = -nostdinc ]; then
cInclude=0
cxxInclude=0
elif [ "$p" = -nostdinc++ ]; then
cxxInclude=0
elif [[ "$p" != -?* ]]; then
# A dash alone signifies standard input; it is not a flag
nonFlagArgs=1
elif [ "$p" = -cc1 ]; then
cc1=1
fi
n+=1

case "$p" in
-[cSEM] | -MM) dontLink=1 ;;
-cc1) cc1=1 ;;
-nostdinc) cInclude=0 cxxInclude=0 ;;
-nostdinc++) cxxInclude=0 ;;
-nostdlib) cxxLibrary=0 ;;
-x)
case "$p2" in
*-header) dontLink=1 ;;
c++*) isCxx=1 ;;
esac
;;
-?*) ;;
*) nonFlagArgs=1 ;; # Includes a solitary dash (`-`) which signifies standard input; it is not a flag
esac
done

# If we pass a flag like -Wl, then gcc will call the linker unless it
Expand All @@ -81,29 +68,31 @@ fi

# Optionally filter out paths not refering to the store.
if [[ "${NIX_ENFORCE_PURITY:-}" = 1 && -n "$NIX_STORE" ]]; then
rest=()
kept=()
nParams=${#params[@]}
declare -i n=0
while (( "$n" < "$nParams" )); do
p=${params[n]}
p2=${params[n+1]:-} # handle `p` being last one
if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then
skip "${p:2}"
elif [ "$p" = -L ] && badPath "$p2"; then
n+=1; skip "$p2"
elif [ "${p:0:3}" = -I/ ] && badPath "${p:2}"; then
skip "${p:2}"
elif [ "$p" = -I ] && badPath "$p2"; then
n+=1; skip "$p2"
elif [ "$p" = -isystem ] && badPath "$p2"; then
n+=1; skip "$p2"
else
rest+=("$p")
fi
n+=1

skipNext=false
path=""
case "$p" in
-[IL]/*) path=${p:2} ;;
-[IL] | -isystem) path=$p2 skipNext=true ;;
esac

if [[ -n $path ]] && badPath "$path"; then
skip "$path"
$skipNext && n+=1
continue
fi

kept+=("$p")
done
# Old bash empty array hack
params=(${rest+"${rest[@]}"})
params=(${kept+"${kept[@]}"})
fi

# Flirting with a layer violation here.
Expand All @@ -118,17 +107,17 @@ fi

# Clear march/mtune=native -- they bring impurity.
if [ "$NIX_ENFORCE_NO_NATIVE_@suffixSalt@" = 1 ]; then
rest=()
kept=()
# Old bash empty array hack
for p in ${params+"${params[@]}"}; do
if [[ "$p" = -m*=native ]]; then
skip "$p"
else
rest+=("$p")
kept+=("$p")
fi
done
# Old bash empty array hack
params=(${rest+"${rest[@]}"})
params=(${kept+"${kept[@]}"})
fi

if [[ "$isCxx" = 1 ]]; then
Expand Down Expand Up @@ -170,6 +159,10 @@ if [ "$dontLink" != 1 ]; then
export NIX_LINK_TYPE_@suffixSalt@=$linkType
fi

if [[ -e @out@/nix-support/add-local-cc-cflags-before.sh ]]; then
source @out@/nix-support/add-local-cc-cflags-before.sh
fi

# As a very special hack, if the arguments are just `-v', then don't
# add anything. This is to prevent `gcc -v' (which normally prints
# out the version number and returns exit code 0) from printing out
Expand Down
17 changes: 9 additions & 8 deletions pkgs/build-support/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,6 @@ stdenv.mkDerivation {
fi
''

##
## General Clang support
##
+ optionalString isClang ''

echo "-target ${targetPlatform.config}" >> $out/nix-support/cc-cflags
''

##
## GCC libs for non-GCC support
##
Expand Down Expand Up @@ -524,6 +516,15 @@ stdenv.mkDerivation {
substituteAll ${../wrapper-common/utils.bash} $out/nix-support/utils.bash
''

##
## General Clang support
## Needs to go after ^ because the for loop eats \n and makes this file an invalid script
##
+ optionalString isClang ''
export defaultTarget=${targetPlatform.config}
substituteAll ${./add-clang-cc-cflags-before.sh} $out/nix-support/add-local-cc-cflags-before.sh
''

##
## Extra custom steps
##
Expand Down
7 changes: 5 additions & 2 deletions pkgs/build-support/fetchzip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# (e.g. due to minor changes in the compression algorithm, or changes
# in timestamps).

{ lib, fetchurl, unzip }:
{ lib, fetchurl, unzip, glibcLocalesUtf8 }:

{ # Optionally move the contents of the unpacked tree up one level.
stripRoot ? true
Expand Down Expand Up @@ -35,7 +35,10 @@ in {

downloadToTemp = true;

nativeBuildInputs = [ unzip ] ++ nativeBuildInputs;
# Have to pull in glibcLocalesUtf8 for unzip in setup-hook.sh to handle
# UTF-8 aware locale:
# https://github.com/NixOS/nixpkgs/issues/176225#issuecomment-1146617263
nativeBuildInputs = [ unzip glibcLocalesUtf8 ] ++ nativeBuildInputs;

postFetch =
''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ assertExecutable() {
# makeWrapper EXECUTABLE OUT_PATH ARGS

# ARGS:
# --argv0 NAME : set the name of the executed process to NAME
# (if unset or empty, defaults to EXECUTABLE)
# --inherit-argv0 : the executable inherits argv0 from the wrapper.
# (use instead of --argv0 '$0')
# --set VAR VAL : add VAR with value VAL to the executable's environment
# --set-default VAR VAL : like --set, but only adds VAR if not already set in
# the environment
# --unset VAR : remove VAR from the environment
# --chdir DIR : change working directory (use instead of --run "cd DIR")
# --add-flags FLAGS : add FLAGS to invocation of executable
# TODO(@ncfavier): --append-flags
# --argv0 NAME : set the name of the executed process to NAME
# (if unset or empty, defaults to EXECUTABLE)
# --inherit-argv0 : the executable inherits argv0 from the wrapper.
# (use instead of --argv0 '$0')
# --set VAR VAL : add VAR with value VAL to the executable's environment
# --set-default VAR VAL : like --set, but only adds VAR if not already set in
# the environment
# --unset VAR : remove VAR from the environment
# --chdir DIR : change working directory (use instead of --run "cd DIR")
# --add-flags ARGS : prepend ARGS to the invocation of the executable
# (that is, *before* any arguments passed on the command line)
# --append-flags ARGS : append ARGS to the invocation of the executable
# (that is, *after* any arguments passed on the command line)

# --prefix ENV SEP VAL : suffix/prefix ENV with VAL, separated by SEP
# --suffix
Expand Down Expand Up @@ -83,7 +85,7 @@ makeDocumentedCWrapper() {
# makeCWrapper EXECUTABLE ARGS
# ARGS: same as makeWrapper
makeCWrapper() {
local argv0 inherit_argv0 n params cmd main flagsBefore flags executable length
local argv0 inherit_argv0 n params cmd main flagsBefore flagsAfter flags executable length
local uses_prefix uses_suffix uses_assert uses_assert_success uses_stdio uses_asprintf
executable=$(escapeStringLiteral "$1")
params=("$@")
Expand Down Expand Up @@ -150,6 +152,13 @@ makeCWrapper() {
n=$((n + 1))
[ $n -ge "$length" ] && main="$main#error makeCWrapper: $p takes 1 argument"$'\n'
;;
--append-flags)
flags="${params[n + 1]}"
flagsAfter="$flagsAfter $flags"
uses_assert=1
n=$((n + 1))
[ $n -ge "$length" ] && main="$main#error makeCWrapper: $p takes 1 argument"$'\n'
;;
--argv0)
argv0=$(escapeStringLiteral "${params[n + 1]}")
inherit_argv0=
Expand All @@ -165,8 +174,7 @@ makeCWrapper() {
;;
esac
done
# shellcheck disable=SC2086
[ -z "$flagsBefore" ] || main="$main"${main:+$'\n'}$(addFlags $flagsBefore)$'\n'$'\n'
[[ -z "$flagsBefore" && -z "$flagsAfter" ]] || main="$main"${main:+$'\n'}$(addFlags "$flagsBefore" "$flagsAfter")$'\n'$'\n'
[ -z "$inherit_argv0" ] && main="${main}argv[0] = \"${argv0:-${executable}}\";"$'\n'
main="${main}return execv(\"${executable}\", argv);"$'\n'

Expand All @@ -184,21 +192,25 @@ makeCWrapper() {
}

addFlags() {
local result n flag flags var
local n flag before after var
# shellcheck disable=SC2086
before=($1) after=($2)
var="argv_tmp"
flags=("$@")
for ((n = 0; n < ${#flags[*]}; n += 1)); do
flag=$(escapeStringLiteral "${flags[$n]}")
result="$result${var}[$((n+1))] = \"$flag\";"$'\n'
done
printf '%s\n' "char **$var = calloc($((n+1)) + argc, sizeof(*$var));"
printf '%s\n' "char **$var = calloc(${#before[@]} + argc + ${#after[@]} + 1, sizeof(*$var));"
printf '%s\n' "assert($var != NULL);"
printf '%s\n' "${var}[0] = argv[0];"
printf '%s' "$result"
for ((n = 0; n < ${#before[@]}; n += 1)); do
flag=$(escapeStringLiteral "${before[n]}")
printf '%s\n' "${var}[$((n + 1))] = \"$flag\";"
done
printf '%s\n' "for (int i = 1; i < argc; ++i) {"
printf '%s\n' " ${var}[$n + i] = argv[i];"
printf '%s\n' " ${var}[${#before[@]} + i] = argv[i];"
printf '%s\n' "}"
printf '%s\n' "${var}[$n + argc] = NULL;"
for ((n = 0; n < ${#after[@]}; n += 1)); do
flag=$(escapeStringLiteral "${after[n]}")
printf '%s\n' "${var}[${#before[@]} + argc + $n] = \"$flag\";"
done
printf '%s\n' "${var}[${#before[@]} + argc + ${#after[@]}] = NULL;"
printf '%s\n' "argv = $var;"
}

Expand Down Expand Up @@ -366,6 +378,10 @@ formatArgs() {
formatArgsLine 1 "$@"
shift 1
;;
--append-flags)
formatArgsLine 1 "$@"
shift 1
;;
--argv0)
formatArgsLine 1 "$@"
shift 1
Expand Down
Loading