Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
cdbda2a
valgrind: 3.18.1 -> 3.19.0
trofi Apr 29, 2022
89a0dd2
wrapCCWith: structured argument for wrapper flags
Apr 30, 2022
ff802de
llvm-14: use nixSupport arguments with wrapCCWith
May 1, 2022
96a8c0a
nixos/postgresql: use postgres 14 for 22.05
ivan May 3, 2022
e6491be
gdb: 11.2 -> 12.1
trofi May 2, 2022
cd1d65c
gdb: fix w/musl, touchup postPatch expr
dtzWill May 3, 2022
bf64063
libqrtr-glib: only enable gtk-doc when not cross-compiling
Mindavi May 5, 2022
4447d40
mingw-w64: 9.0.0 -> 10.0.0
shlevy May 2, 2022
504d38a
cross: Allow Windows toolchains to use ucrt as libc.
shlevy May 2, 2022
4b503b2
cc-wrapper: clang doesn't support -fPIC on Windows
shlevy May 3, 2022
a73b59a
llvm-bintools: Include aliases for windres and dlltool on Windows
shlevy May 3, 2022
b00016d
bintools-wrapper: Remove LDEMULATION setting.
shlevy May 7, 2022
dee9af9
bintools: Add isXXX flags to check linker type
shlevy May 9, 2022
4c0d5f8
bintools-wrapper: Don't pass -z to lld targeting Windows
shlevy May 3, 2022
078a077
libunwind: Fix build against compiler-rt-using clang
shlevy May 3, 2022
5ca96b9
libcxxabi: Fix build against compiler-rt-using clang
shlevy May 3, 2022
b7b9b73
libcxx/libcxxabi: Fix build on Windows with lld
shlevy May 3, 2022
5c0654f
cross: Add mingwW64-llvm cross-system.
shlevy May 3, 2022
15aa32e
llvm-bintools: passthru targetPrefix.
shlevy May 3, 2022
d68a532
Set a default machine type when using lld targeting Windows.
shlevy May 6, 2022
98a853c
Add msys2 libtool patch for mingw + clang + compiler-rt
shlevy May 6, 2022
f4d5830
libffi: autoreconf on Windows for libtool fix
shlevy May 6, 2022
b08eed0
libffi: Fix build for Windows with lld
shlevy May 6, 2022
f28101d
gmp: autoreconf on Windows for libtool fixes.
shlevy May 6, 2022
5e8a857
ncurses: Fix building against ucrt
shlevy May 6, 2022
ece10a7
ghcHEAD: Fix Windows cross-compilation with lld.
shlevy May 7, 2022
0d6bcb5
makeBinaryWrapper: move into its own folder
ncfavier May 10, 2022
6224594
makeWrapper,makeBinaryWrapper: introduce explicitly named functions
ncfavier May 10, 2022
81b9c71
wrapGAppsHook: rename argument to makeWrapper
ncfavier May 10, 2022
8b79ef2
makeBinaryWrapper: remove cc from deps
ncfavier May 10, 2022
2ae6911
makeWrapper: implement --inherit-argv0
ncfavier May 10, 2022
8836999
makeBinaryWrapper: add extractCmd
ncfavier May 11, 2022
c6a4414
postgresqlPackages.pg_safeupdate: 1.2 -> 1.4
ivan May 11, 2022
5a19730
postgresql_10: 10.20 -> 10.21
marsam May 12, 2022
74707e7
postgresql_11: 11.15 -> 11.16
marsam May 12, 2022
9d599ca
postgresql_12: 12.10 -> 12.11
marsam May 12, 2022
84e86fc
postgresql_13: 13.6 -> 13.7
marsam May 12, 2022
242c4aa
postgresql_14: 14.2 -> 14.3
marsam May 12, 2022
3c77d36
makeShellWrapper: add explicitly named attribute
ncfavier May 11, 2022
4b0f59a
binutils: add upstream patch to fix issue with parallel use of dlltool
SFrijters May 11, 2022
3e385d9
makeBinaryWrapper: add comment
ncfavier May 12, 2022
bbc8535
Merge staging-next into staging
github-actions[bot] May 12, 2022
8e85778
gtk: fix missing immodules.cache
theklaaa May 11, 2022
5c51876
Merge pull request #172366 from ncfavier/wrappers-cleanup
thiagokokada May 12, 2022
be29f45
rustc: expose correct llvmPackages for cross compile
NickCao Nov 30, 2021
d79af4e
Merge staging-next into staging
github-actions[bot] May 13, 2022
aeeb487
Merge pull request #171216 from trofi/updater-gdb
trofi May 13, 2022
a2b6573
Merge pull request #170866 from trofi/update-valgrind
trofi May 13, 2022
b43e5ff
Merge pull request #172781 from marsam/update-postgresql
marsam May 13, 2022
f6c5761
firefox-unwrapped: fix cross compilation
NickCao May 3, 2022
c9945b4
Merge staging-next into staging
github-actions[bot] May 13, 2022
1f75e49
Merge pull request #147986 from NickCao/rustc-llvmpackages
Mindavi May 13, 2022
9457a82
Merge pull request #171459 from ivan/postgresql-is-14
marsam May 13, 2022
8141261
Merge staging-next into staging
github-actions[bot] May 13, 2022
fe71877
Merge staging-next into staging
github-actions[bot] May 13, 2022
4abc808
e2fsprogs: patch for CVE-2022-1304
alyssais May 13, 2022
5d15a09
gtk4: patch fixing g-c-c crashes
May 13, 2022
20c371f
gtk3: 3.24.33 -> 3.24.33-2022-03-11
May 13, 2022
570ff7b
Merge pull request #172925 from maxeaubrey/gtk_backports
jtojnar May 13, 2022
5729205
Merge pull request #172616 from theknyaa/fix-gtk-immodules-cache
jtojnar May 14, 2022
9e19de1
Merge pull request #172617 from SFrijters/patch-binutils-deterministi…
lovesegfault May 14, 2022
cd6eea5
Merge pull request #171083 from ehmry/wrapCCWith-nixSuport
7c6f434c May 14, 2022
d1b77f9
Merge branch 'staging-next' into staging
jtojnar May 15, 2022
a41870f
Merge staging-next into staging
github-actions[bot] May 15, 2022
f74178b
Merge staging-next into staging
github-actions[bot] May 15, 2022
d5cf6ab
pandas: fix darwin build
midchildan May 15, 2022
040c655
Merge pull request #173177 from midchildan/fix/pandas
risicle May 15, 2022
56fa124
Merge pull request #171628 from Mindavi/libqrtr-glib/cross
Mindavi May 15, 2022
408492b
python310Packages.python-mimeparse: execute tests
SuperSandro2000 May 5, 2022
e2602ad
Merge staging-next into staging
github-actions[bot] May 16, 2022
17a8a7d
Merge staging-next into staging
github-actions[bot] May 16, 2022
add7574
Merge staging-next into staging
github-actions[bot] May 16, 2022
e87bfef
Merge staging-next into staging
github-actions[bot] May 16, 2022
48c0ce6
Merge pull request #171738 from SuperSandro2000/mimeparse
SuperSandro2000 May 16, 2022
92f4c6e
lua: fix on darwin by using makeBinaryWrapper (#172749)
zaphar May 17, 2022
14e4143
Merge master into staging-next
github-actions[bot] May 17, 2022
93e5dc3
Merge master into staging-next
github-actions[bot] May 17, 2022
180709d
Merge master into staging-next
github-actions[bot] May 18, 2022
3582135
Merge master into staging-next
github-actions[bot] May 18, 2022
0f68ed1
Merge branch 'mingwW64-clang' into staging
shlevy May 18, 2022
89ad105
Merge branch 'no-ldemulation' into staging
shlevy May 18, 2022
7456be8
Merge branch 'staging-next' into staging
shlevy May 18, 2022
c911240
Revert "Add mingwW64-llvm cross-system."
dasJ May 18, 2022
bd9c07e
Merge master into staging-next
github-actions[bot] May 18, 2022
1d38b75
Merge staging-next into staging
github-actions[bot] May 18, 2022
39ef632
openldap: 2.4.58 -> 2.6.2
mweinelt May 18, 2022
1d24e9a
openldap: update maintainers
mweinelt May 18, 2022
15f3cc4
Merge pull request #173487 from NixOS/revert-171418-mingwW64-clang
Ericson2314 May 18, 2022
e7f5c53
Merge pull request #173439 from mweinelt/openldap
Lassulus May 18, 2022
925219f
Merge master into staging-next
github-actions[bot] May 18, 2022
39ddfff
Merge staging-next into staging
github-actions[bot] May 18, 2022
17dfec3
Merge master into staging-next
github-actions[bot] May 19, 2022
ed086b0
Merge master into staging-next
github-actions[bot] May 19, 2022
bd83e4c
Merge master into staging-next
github-actions[bot] May 19, 2022
849559c
Merge branch 'staging' (older version) into staging-next
vcunat May 19, 2022
b833efb
Merge master into staging-next
github-actions[bot] May 19, 2022
885d4e0
nixos/openldap: use upstream unit defaults
mweinelt May 19, 2022
ac7627e
gtk4: Fix incorrect merge
jtojnar May 19, 2022
75906ed
Merge master into staging-next
github-actions[bot] May 20, 2022
ce95d13
Merge master into staging-next
github-actions[bot] May 20, 2022
cd13906
Merge pull request #173668 from mweinelt/slapd-notify
dasJ May 20, 2022
f5558d8
Merge master into staging-next
github-actions[bot] May 20, 2022
77bded3
Merge master into staging-next
github-actions[bot] May 20, 2022
b8b9f52
Merge branch 'master' into staging-next
jtojnar May 21, 2022
084f3d7
Merge master into staging-next
github-actions[bot] May 21, 2022
63d81dd
pkgsi686Linux.gdb: fix formatting for 32-bit systems
trofi May 21, 2022
a762388
Merge #173844: gdb: fix formatting for 32-bit systems
vcunat May 21, 2022
dbef850
Merge master into staging-next
github-actions[bot] May 22, 2022
deef19c
Merge master into staging-next
github-actions[bot] May 22, 2022
30aeecf
wine: enable parallel build again
SFrijters May 22, 2022
86ec856
Merge master into staging-next
github-actions[bot] May 22, 2022
a7d4e41
Merge #173981: wine: enable parallel build again
vcunat May 22, 2022
9f4060c
Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)"
vcunat May 22, 2022
4b6af00
python3Packages.ldap: fix linking with openldap 2.5+
mweinelt May 22, 2022
107b604
Merge master into staging-next
github-actions[bot] May 22, 2022
1cc6f08
makeBinaryWrapper: fix codesign on aarch64-darwin
ncfavier May 22, 2022
ba51228
Merge master into staging-next
github-actions[bot] May 23, 2022
be2ceef
openldap: fix cross-compilation
Mindavi May 22, 2022
232db92
Merge branch 'master' into staging-next
vcunat May 23, 2022
063c560
Merge #174038: makeBinaryWrapper: fix codesign on aarch64-darwin
vcunat May 23, 2022
4ddea71
Re-Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)"
vcunat May 23, 2022
54c2bcd
Merge pull request #174049 from Mindavi/openldap/cross
dasJ May 23, 2022
f514993
Merge master into staging-next
github-actions[bot] May 23, 2022
b30c12f
Merge master into staging-next
github-actions[bot] May 23, 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
2 changes: 1 addition & 1 deletion doc/stdenv/stdenv.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ makeWrapper $out/bin/foo $wrapperfile --set FOOBAR baz
makeWrapper $out/bin/foo $wrapperfile --prefix PATH : ${lib.makeBinPath [ hello git ]}
```

There’s many more kinds of arguments, they are documented in `nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh` for the `makeWrapper` implementation and in `nixpkgs/pkgs/build-support/setup-hooks/make-binary-wrapper.sh` for the `makeBinaryWrapper` implementation.
There’s many more kinds of arguments, they are documented in `nixpkgs/pkgs/build-support/setup-hooks/make-wrapper.sh` for the `makeWrapper` implementation and in `nixpkgs/pkgs/build-support/setup-hooks/make-binary-wrapper/make-binary-wrapper.sh` for the `makeBinaryWrapper` implementation.

`wrapProgram` is a convenience function you probably want to use most of the time, implemented by both `makeWrapper` and `makeBinaryWrapper`.

Expand Down
17 changes: 17 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@
have been removed.
</para>
</listitem>
<listitem>
<para>
PostgreSQL now defaults to major version 14.
</para>
</listitem>
<listitem>
<para>
The new
Expand Down Expand Up @@ -698,6 +703,18 @@
the IPv6 loopback address (<literal>::1</literal>).
</para>
</listitem>
<listitem>
<para>
<literal>openldap</literal> (and therefore the slapd LDAP
server) were updated to version 2.6.2. The project introduced
backwards-incompatible changes, namely the removal of the bdb,
hdb, ndb, and shell backends in slapd. Therefore before
updating, dump your database <literal>slapcat -n 1</literal>
in LDIF format, and reimport it after updating your
<literal>services.openldap.settings</literal>, which
represents your <literal>cn=config</literal>.
</para>
</listitem>
<listitem>
<para>
<literal>openssh</literal> has been update to 8.9p1, changing
Expand Down
4 changes: 4 additions & 0 deletions nixos/doc/manual/release-notes/rl-2205.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ In addition to numerous new and upgraded packages, this release has the followin
- Pulseaudio has been upgraded to version 15.0 and now optionally [supports additional Bluetooth audio codecs](https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/15.0/#supportforldacandaptxbluetoothcodecsplussbcxqsbcwithhigher-qualityparameters) like aptX or LDAC, with codec switching support being available in `pavucontrol`. This feature is disabled by default but can be enabled by using `hardware.pulseaudio.package = pkgs.pulseaudioFull;`.
Existing 3rd party modules that provided similar functionality, like `pulseaudio-modules-bt` or `pulseaudio-hsphfpd` are deprecated and have been removed.

- PostgreSQL now defaults to major version 14.

- The new [`postgresqlTestHook`](https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook) runs a PostgreSQL server for the duration of package checks.

- [`kops`](https://kops.sigs.k8s.io) defaults to 1.22.4, which will enable [Instance Metadata Service Version 2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html) and require tokens on new clusters with Kubernetes 1.22. This will increase security by default, but may break some types of workloads. See the [release notes](https://kops.sigs.k8s.io/releases/1.22-notes/) for details.
Expand Down Expand Up @@ -246,6 +248,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- In the ncdns module, the default value of `services.ncdns.address` has been changed to the IPv6 loopback address (`::1`).

- `openldap` (and therefore the slapd LDAP server) were updated to version 2.6.2. The project introduced backwards-incompatible changes, namely the removal of the bdb, hdb, ndb, and shell backends in slapd. Therefore before updating, dump your database `slapcat -n 1` in LDIF format, and reimport it after updating your `services.openldap.settings`, which represents your `cn=config`.

- `openssh` has been update to 8.9p1, changing the FIDO security key middleware interface.

- `git` no longer hardcodes the path to openssh' ssh binary to reduce the amount of rebuilds. If you are using git with ssh remotes and do not have a ssh binary in your enviroment consider adding `openssh` to it or switching to `gitFull`.
Expand Down
11 changes: 8 additions & 3 deletions nixos/modules/services/databases/openldap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,14 @@ in {
};

systemd.services.openldap = {
description = "LDAP server";
description = "OpenLDAP Server Daemon";
documentation = [
"man:slapd"
"man:slapd-config"
"man:slapd-mdb"
];
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
after = [ "network-online.target" ];
preStart = let
settingsFile = pkgs.writeText "config.ldif" (lib.concatStringsSep "\n" (attrsToLdif "cn=config" cfg.settings));

Expand Down Expand Up @@ -306,7 +311,7 @@ in {
"${openldap}/libexec/slapd" "-u" cfg.user "-g" cfg.group "-F" configDir
"-h" (lib.concatStringsSep " " cfg.urlList)
]);
Type = "forking";
Type = "notify";
PIDFile = cfg.settings.attrs.olcPidFile;
};
};
Expand Down
3 changes: 2 additions & 1 deletion nixos/modules/services/databases/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ in
# Note: when changing the default, make it conditional on
# ‘system.stateVersion’ to maintain compatibility with existing
# systems!
mkDefault (if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
mkDefault (if versionAtLeast config.system.stateVersion "22.05" then pkgs.postgresql_14
else if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
else if versionAtLeast config.system.stateVersion "20.03" then pkgs.postgresql_11
else if versionAtLeast config.system.stateVersion "17.09" then mkThrow "9_6"
else mkThrow "9_5");
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/neovim/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ let
hostprog_check_table);
in
[
"--argv0" "$0" "--add-flags" (lib.escapeShellArgs flags)
"--inherit-argv0" "--add-flags" (lib.escapeShellArgs flags)
] ++ lib.optionals withRuby [
"--set" "GEM_HOME" "${rubyEnv}/${rubyEnv.ruby.gemPath}"
] ++ lib.optionals (binPath != "") [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/vscode/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ let
++ lib.optionals stdenv.isLinux [
autoPatchelfHook
nodePackages.asar
(wrapGAppsHook.override { makeBinaryWrapper = makeWrapper; })
(wrapGAppsHook.override { inherit makeWrapper; })
];

dontBuild = true;
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/emulators/wine/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
done
'';

# Until https://github.com/NixOS/nixpkgs/pull/172617 is applied,
# parallel builds do not always work because of a bug in dlltool.
enableParallelBuilding = false;
enableParallelBuilding = true;

# https://bugs.winehq.org/show_bug.cgi?id=43530
# https://github.com/NixOS/nixpkgs/issues/31989
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/browsers/brave/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [
dpkg
(wrapGAppsHook.override { makeBinaryWrapper = makeWrapper; })
(wrapGAppsHook.override { inherit makeWrapper; })
];

buildInputs = [
Expand Down
24 changes: 20 additions & 4 deletions pkgs/applications/networking/browsers/firefox/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
, xorg
, zip
, zlib
, pkgsBuildBuild

# optionals

Expand Down Expand Up @@ -142,16 +143,21 @@ let

# Target the LLVM version that rustc is built with for LTO.
llvmPackages0 = rustc.llvmPackages;
llvmPackagesBuildBuild0 = pkgsBuildBuild.rustc.llvmPackages;

# Force the use of lld and other llvm tools for LTO
llvmPackages = llvmPackages0.override {
bootBintoolsNoLibc = null;
bootBintools = null;
};
llvmPackagesBuildBuild = llvmPackagesBuildBuild0.override {
bootBintoolsNoLibc = null;
bootBintools = null;
};

# LTO requires LLVM bintools including ld.lld and llvm-ar.
buildStdenv = overrideCC llvmPackages.stdenv (llvmPackages.stdenv.cc.override {
inherit (llvmPackages) bintools;
bintools = if ltoSupport then buildPackages.rustc.llvmPackages.bintools else stdenv.cc.bintools;
});

# Compile the wasm32 sysroot to build the RLBox Sandbox
Expand Down Expand Up @@ -217,10 +223,15 @@ buildStdenv.mkDerivation ({
# two patches.
patchFlags = [ "-p1" "-l" ];

# if not explicitly set, wrong cc from buildStdenv would be used
HOST_CC = "${llvmPackagesBuildBuild.stdenv.cc}/bin/cc";
HOST_CXX = "${llvmPackagesBuildBuild.stdenv.cc}/bin/c++";

nativeBuildInputs = [
autoconf
cargo
llvmPackages.llvm # llvm-objdump
gnum4
llvmPackagesBuildBuild.bintools
makeWrapper
nodejs
perl
Expand Down Expand Up @@ -302,14 +313,17 @@ buildStdenv.mkDerivation ({
export MOZILLA_OFFICIAL=1
'';

# firefox has a different definition of configurePlatforms from nixpkgs, see configureFlags
configurePlatforms = [ ];

configureFlags = [
"--disable-tests"
"--disable-updater"
"--enable-application=${application}"
"--enable-default-toolkit=cairo-gtk3${lib.optionalString waylandSupport "-wayland"}"
"--enable-system-pixman"
"--with-distribution-id=org.nixos"
"--with-libclang-path=${llvmPackages.libclang.lib}/lib"
"--with-libclang-path=${llvmPackagesBuildBuild.libclang.lib}/lib"
"--with-system-ffi"
"--with-system-icu"
"--with-system-jpeg"
Expand All @@ -320,6 +334,9 @@ buildStdenv.mkDerivation ({
"--with-system-png" # needs APNG support
"--with-system-webp"
"--with-system-zlib"
# for firefox, host is buildPlatform, target is hostPlatform
"--host=${buildStdenv.buildPlatform.config}"
"--target=${buildStdenv.hostPlatform.config}"
]
# LTO is done using clang and lld on Linux.
++ lib.optionals ltoSupport [
Expand Down Expand Up @@ -362,7 +379,6 @@ buildStdenv.mkDerivation ({
fontconfig
freetype
glib
gnum4
gtk3
icu
libffi
Expand Down
9 changes: 3 additions & 6 deletions pkgs/applications/networking/browsers/firefox/wrapper.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, makeDesktopItem, makeWrapper, lndir, config
{ stdenv, lib, makeDesktopItem, makeWrapper, makeBinaryWrapper, lndir, config
, fetchurl, zip, unzip, jq, xdg-utils, writeText

## various stuff that can be plugged in
Expand Down Expand Up @@ -231,18 +231,15 @@ let
# Symbolic link: wrap the link's target.
oldExe="$(readlink -v --canonicalize-existing "$executablePath")"
rm "$executablePath"
elif wrapperCmd=$(strings -dw "$executablePath" | sed -n '/^makeCWrapper/,/^$/ p'); [[ $wrapperCmd ]]; then
elif wrapperCmd=$(${makeBinaryWrapper.extractCmd} "$executablePath"); [[ $wrapperCmd ]]; then
# If the executable is a binary wrapper, we need to update its target to
# point to $out, but we can't just edit the binary in-place because of length
# issues. So we extract the command used to create the wrapper and add the
# arguments to our wrapper.
parseMakeCWrapperCall() {
shift # makeCWrapper
oldExe=$1; shift
for arg do case $arg in
--inherit-argv0) oldWrapperArgs+=(--argv0 '$0');; # makeWrapper doesn't understand --inherit-argv0
*) oldWrapperArgs+=("$arg");;
esac done
oldWrapperArgs=("$@")
}
eval "parseMakeCWrapperCall ''${wrapperCmd//"${browser}"/"$out"}"
rm "$executablePath"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ pname, version, src, meta, binaryName, desktopName, autoPatchelfHook
, makeDesktopItem, lib, stdenv, wrapGAppsHook, makeWrapper, alsa-lib, at-spi2-atk
, makeDesktopItem, lib, stdenv, wrapGAppsHook, makeShellWrapper, alsa-lib, at-spi2-atk
, at-spi2-core, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk-pixbuf
, glib, gtk3, libcxx, libdrm, libnotify, libpulseaudio, libuuid, libX11
, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext, libXfixes
Expand All @@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
libxshmfence
mesa
nss
(wrapGAppsHook.override { makeBinaryWrapper = makeWrapper; })
wrapGAppsHook
makeShellWrapper
];

dontWrapGApps = true;
Expand Down Expand Up @@ -78,7 +79,7 @@ stdenv.mkDerivation rec {
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
$out/opt/${binaryName}/${binaryName}

wrapProgram $out/opt/${binaryName}/${binaryName} \
wrapProgramShell $out/opt/${binaryName}/${binaryName} \
"''${gappsWrapperArgs[@]}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [
autoPatchelfHook
dpkg
(wrapGAppsHook.override { makeBinaryWrapper = makeWrapper; })
(wrapGAppsHook.override { inherit makeWrapper; })
];

buildInputs = [
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/science/logic/tlaplus/toolbox.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib
, fetchzip
, makeWrapper
, makeShellWrapper
, makeDesktopItem
, stdenv
, gtk3
Expand Down Expand Up @@ -35,8 +35,8 @@ stdenv.mkDerivation rec {
buildInputs = [ gtk3 ];

nativeBuildInputs = [
makeWrapper
(wrapGAppsHook.override { makeBinaryWrapper = makeWrapper; })
makeShellWrapper
wrapGAppsHook
];

dontWrapGApps = true;
Expand Down Expand Up @@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
"$(find "$out/toolbox" -name jspawnhelper)"

makeWrapper $out/toolbox/toolbox $out/bin/tla-toolbox \
makeShellWrapper $out/toolbox/toolbox $out/bin/tla-toolbox \
--chdir "$out/toolbox" \
--add-flags "-data ~/.tla-toolbox" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk3 libXtst glib zlib ]}" \
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/video/mpv/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let
# All arguments besides the input and output binaries (${mpv}/bin/mpv and
# $out/bin/mpv). These are used by the darwin specific makeWrapper call
# used to wrap $out/Applications/mpv.app/Contents/MacOS/mpv as well.
mostMakeWrapperArgs = lib.strings.escapeShellArgs ([ "--argv0" "'$0'"
mostMakeWrapperArgs = lib.strings.escapeShellArgs ([ "--inherit-argv0"
# These are always needed (TODO: Explain why)
"--prefix" "LUA_CPATH" ";" "${mpv.luaEnv}/lib/lua/${mpv.lua.luaversion}/?.so"
"--prefix" "LUA_PATH" ";" "${mpv.luaEnv}/share/lua/${mpv.lua.luaversion}/?.lua"
Expand All @@ -53,7 +53,7 @@ let
)) ++ extraMakeWrapperArgs)
;
umpvWrapperArgs = lib.strings.escapeShellArgs ([
"--argv0" "'$0'"
"--inherit-argv0"
"--set" "MPV" "${placeholder "out"}/bin/mpv"
] ++ extraUmpvWrapperArgs)
;
Expand Down
34 changes: 0 additions & 34 deletions pkgs/build-support/bintools-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -184,40 +184,6 @@ stdenv.mkDerivation {
done
'';

emulation = let
fmt =
/**/ if targetPlatform.isDarwin then "mach-o"
else if targetPlatform.isWindows then "pe"
else "elf" + toString targetPlatform.parsed.cpu.bits;
endianPrefix = if targetPlatform.isBigEndian then "big" else "little";
sep = optionalString (!targetPlatform.isMips && !targetPlatform.isPower && !targetPlatform.isRiscV) "-";
arch =
/**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
else if targetPlatform.isAarch32 then endianPrefix + "arm"
else if targetPlatform.isx86_64 then "x86-64"
else if targetPlatform.isx86_32 then "i386"
else if targetPlatform.isMips then {
mips = "btsmipn32"; # n32 variant
mipsel = "ltsmipn32"; # n32 variant
mips64 = "btsmip";
mips64el = "ltsmip";
}.${targetPlatform.parsed.cpu.name}
else if targetPlatform.isMmix then "mmix"
else if targetPlatform.isPower then if targetPlatform.isBigEndian then "ppc" else "lppc"
else if targetPlatform.isSparc then "sparc"
else if targetPlatform.isMsp430 then "msp430"
else if targetPlatform.isAvr then "avr"
else if targetPlatform.isAlpha then "alpha"
else if targetPlatform.isVc4 then "vc4"
else if targetPlatform.isOr1k then "or1k"
else if targetPlatform.isM68k then "m68k"
else if targetPlatform.isS390 then "s390"
else if targetPlatform.isRiscV then "lriscv"
else if targetPlatform.isRx then "rx"
else throw "unknown emulation for platform: ${targetPlatform.config}";
in if targetPlatform.useLLVM or false then ""
else targetPlatform.bfdEmulation or (fmt + sep + arch);

strictDeps = true;
depsTargetTargetPropagated = extraPackages;

Expand Down
5 changes: 0 additions & 5 deletions pkgs/build-support/bintools-wrapper/ld-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ if [ -e @out@/nix-support/add-local-ldflags-before.sh ]; then
fi


# Specify the target emulation if nothing is passed in ("-m" overrides this
# environment variable). Ensures we never blindly fallback on targeting the host
# platform.
: ${LDEMULATION:=@emulation@}

# Three tasks:
#
# 1. Find all -L... switches for rpath
Expand Down
Loading