nautilus: fix cross compilation

This commit is contained in:
2024-12-05 10:24:41 +00:00
parent 48ff85492d
commit d9c6476afa

View File

@@ -145,19 +145,26 @@ in with final; {
# ''; # '';
# }); # });
# apacheHttpdPackagesFor = apacheHttpd: self: # fix apxs shebang; needed by mod_dnssd
# let apacheHttpd_2_4 = prev.apacheHttpd_2_4.overrideAttrs (upstream: {
# prevHttpdPkgs = prev.apacheHttpdPackagesFor apacheHttpd self; nativeBuildInputs = upstream.nativeBuildInputs ++ [
# in prevHttpdPkgs // { buildPackages.perl #< should be `perl`, but the overlay approach loses splicing (?)
# # fixes "configure: error: *** Sorry, could not find apxs ***" ];
# # N.B.: the below apxs doesn't have a valid shebang (#!/replace/with/...). });
# # we can't replace it at the origin?
# mod_dnssd = prevHttpdPkgs.mod_dnssd.overrideAttrs (upstream: { apacheHttpdPackagesFor = apacheHttpd: self:
# configureFlags = upstream.configureFlags ++ [ let
# "--with-apxs=${self.apacheHttpd.dev}/bin" prevHttpdPkgs = prev.apacheHttpdPackagesFor apacheHttpd self;
# ]; in
# }); prevHttpdPkgs // {
# }; # fixes "configure: error: *** Sorry, could not find apxs ***"
# SEE NIXPKGS BRANCH: pr-mod_dnssd-cross
mod_dnssd = prevHttpdPkgs.mod_dnssd.overrideAttrs (upstream: {
configureFlags = upstream.configureFlags ++ [
"--with-apxs=${lib.getDev apacheHttpd}/bin"
];
});
};
# bamf: required via pantheon.switchboard -> wingpanel -> gala # bamf: required via pantheon.switchboard -> wingpanel -> gala
# bamf = prev.bamf.overrideAttrs (upstream: { # bamf = prev.bamf.overrideAttrs (upstream: {
@@ -470,8 +477,22 @@ in with final; {
# }); # });
# 2024/08/12: upstreaming is blocked on apache-httpd (via mod_dnssd) # 2024/08/12: upstreaming is blocked on apache-httpd (via mod_dnssd)
# fixes: meson.build:111:6: ERROR: Program 'glib-compile-schemas' not found or not executable
# gnome-user-share = addNativeInputs [ glib ] prev.gnome-user-share; # gnome-user-share = addNativeInputs [ glib ] prev.gnome-user-share;
gnome-user-share = prev.gnome-user-share.overrideAttrs (upstream: {
postPatch = (upstream.postPatch or "") + ''
substituteInPlace meson.build --replace-fail \
"run_command([httpd, '-v']" \
"run_command(['${stdenv.hostPlatform.emulator buildPackages}', httpd, '-v']"
'';
# nativeBuildInputs = upstream.nativeBuildInputs ++ lib.optionals (!prev.stdenv.buildPlatform.canExecute prev.stdenv.hostPlatform) [
# buildPackages.mesonEmulatorHook
# ];
nativeBuildInputs = upstream.nativeBuildInputs ++ [
# fixes: meson.build:111:6: ERROR: Program 'glib-compile-schemas' not found or not executable
buildPackages.glib
];
});
# gnome = prev.gnome.overrideScope (self: super: { # gnome = prev.gnome.overrideScope (self: super: {
# # 2024/05/31: upstreaming is blocked by a LOT: qtbase, qtsvg, webp-pixbuf-loader, libgweather, gnome-color-manager, appstream, apache-httpd, ibus # # 2024/05/31: upstreaming is blocked by a LOT: qtbase, qtsvg, webp-pixbuf-loader, libgweather, gnome-color-manager, appstream, apache-httpd, ibus
@@ -714,15 +735,12 @@ in with final; {
zigBuildFlags = [ "-Dtarget=aarch64-linux-gnu" ]; zigBuildFlags = [ "-Dtarget=aarch64-linux-gnu" ];
}); });
# nautilus = ( # 2024/08/12: upstreaming is blocked on apache-httpd (via gnome-user-share)
# # 2024/08/12: upstreaming is blocked on apache-httpd (via gnome-user-share) nautilus = prev.nautilus.overrideAttrs (upstream: {
# addInputs { mesonFlags = upstream.mesonFlags ++ [
# # fixes: "meson.build:123:0: ERROR: Dependency "libxml-2.0" not found, tried pkgconfig" "-Dtests=none" # v.s. `headless` for native compilation
# buildInputs = [ libxml2 ]; ];
# # fixes: "meson.build:226:6: ERROR: Program 'gtk-update-icon-cache' not found or not executable" });
# nativeBuildInputs = [ gtk4 ];
# }
# );
# fixes: "ar: command not found" # fixes: "ar: command not found"
# `ar` is provided by bintools # `ar` is provided by bintools