Merge pull request #183461 from Artturin/crossfixes1

This commit is contained in:
Artturi 2022-07-29 01:36:57 +03:00 committed by GitHub
commit 2679e22074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ lib, stdenv
, buildPackages
, fetchFromGitHub
, nix-update-script
, substituteAll
@ -120,7 +121,7 @@ stdenv.mkDerivation rec {
prePatch = ''
substituteInPlace autogen.sh \
--replace "which" "${busybox}/bin/which"
--replace "which" "${buildPackages.busybox}/bin/which"
substituteInPlace src/shared-data-manager.c \
--replace /bin/rm ${busybox}/bin/rm

View file

@ -166,7 +166,7 @@ stdenv.mkDerivation {
# Create symlinks for rest of the binaries.
+ ''
for binary in objdump objcopy size strings as nm gprof dwp c++filt addr2line ranlib readelf elfedit; do
for binary in objdump objcopy size strings as ar nm gprof dwp c++filt addr2line ranlib readelf elfedit; do
if [ -e $ldPath/${targetPrefix}''${binary} ]; then
ln -s $ldPath/${targetPrefix}''${binary} $out/bin/${targetPrefix}''${binary}
fi

View file

@ -10,6 +10,7 @@
, systemd
, coreutils
, meson
, mesonEmulatorHook
, dbus
, ninja
, python3
@ -47,7 +48,6 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [
dbus
gettext
gobject-introspection
meson
@ -55,9 +55,14 @@ stdenv.mkDerivation rec {
pkg-config
python3
vala
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
# meson.build:88:2: ERROR: Can not run test applications in this cross environment.
mesonEmulatorHook
];
buildInputs = [
gobject-introspection
dbus
glib
polkit
systemd