Merge pull request #183461 from Artturin/crossfixes1
This commit is contained in:
commit
2679e22074
3 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
|
, buildPackages
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
@ -120,7 +121,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace autogen.sh \
|
substituteInPlace autogen.sh \
|
||||||
--replace "which" "${busybox}/bin/which"
|
--replace "which" "${buildPackages.busybox}/bin/which"
|
||||||
|
|
||||||
substituteInPlace src/shared-data-manager.c \
|
substituteInPlace src/shared-data-manager.c \
|
||||||
--replace /bin/rm ${busybox}/bin/rm
|
--replace /bin/rm ${busybox}/bin/rm
|
||||||
|
|
|
@ -166,7 +166,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
# Create symlinks for rest of the binaries.
|
# 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
|
if [ -e $ldPath/${targetPrefix}''${binary} ]; then
|
||||||
ln -s $ldPath/${targetPrefix}''${binary} $out/bin/${targetPrefix}''${binary}
|
ln -s $ldPath/${targetPrefix}''${binary} $out/bin/${targetPrefix}''${binary}
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
, systemd
|
, systemd
|
||||||
, coreutils
|
, coreutils
|
||||||
, meson
|
, meson
|
||||||
|
, mesonEmulatorHook
|
||||||
, dbus
|
, dbus
|
||||||
, ninja
|
, ninja
|
||||||
, python3
|
, python3
|
||||||
|
@ -47,7 +48,6 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
dbus
|
|
||||||
gettext
|
gettext
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
meson
|
meson
|
||||||
|
@ -55,9 +55,14 @@ stdenv.mkDerivation rec {
|
||||||
pkg-config
|
pkg-config
|
||||||
python3
|
python3
|
||||||
vala
|
vala
|
||||||
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||||
|
# meson.build:88:2: ERROR: Can not run test applications in this cross environment.
|
||||||
|
mesonEmulatorHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
gobject-introspection
|
||||||
|
dbus
|
||||||
glib
|
glib
|
||||||
polkit
|
polkit
|
||||||
systemd
|
systemd
|
||||||
|
|
Loading…
Reference in a new issue