send sway-related cross patches upstream
This commit is contained in:
parent
9764d5f095
commit
50ee15ef2b
|
@ -50,8 +50,8 @@ in
|
|||
packageUnwrapped = pkgs.waybar.override {
|
||||
# not *required*, however this does cut down on some cross-compilation issues
|
||||
# and also avoids building entirely unused dependencies
|
||||
sway = config.sane.programs.sway.package;
|
||||
hyprlandSupport = false; #< doesn't cross
|
||||
sway = config.sane.programs.sway.package.sway-unwrapped;
|
||||
# hyprlandSupport = false; #< doesn't cross
|
||||
};
|
||||
|
||||
sandbox.method = "bwrap";
|
||||
|
|
|
@ -38,6 +38,12 @@ in [
|
|||
hash = "sha256-cC9GBF5tCeJ2GDSjMjlG4hYStIJPEoRBAK9/KhJiiIo=";
|
||||
})
|
||||
|
||||
(fetchpatch' {
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/292415";
|
||||
title = "sway/hyprland: cross compilation fixes";
|
||||
hash = "sha256-MgqeTufPek0cUELXjHWoSfDU5Pl9wtwnjWBlnqabHu8=";
|
||||
})
|
||||
|
||||
(fetchpatch' {
|
||||
# this forces an expensive rebuild, mostly just to reduce moby's closure by 40 MiB (if even)
|
||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/291942";
|
||||
|
|
|
@ -1110,8 +1110,8 @@ in with final; {
|
|||
}
|
||||
);
|
||||
|
||||
# 2024/01/14: patched and built; verified no native runtime deps
|
||||
# 2024/02/27: upstreaming is unblocked
|
||||
# out for PR: <https://github.com/NixOS/nixpkgs/pull/292415>
|
||||
# fixes "proto/meson.build:17:15: ERROR: Failed running '/nix/store/sx2814jd7xim65qbiqry94vkq2b4xv5b-python3-aarch64-unknown-linux-gnu-3.11.7-env/bin/python3', binary or interpreter not executable."
|
||||
# source runs python during build only as a sanity check: we could instead disable that.
|
||||
# this library is probably only used by xwayland: <https://github.com/NixOS/nixpkgs/pull/280256>
|
||||
|
@ -2002,26 +2002,26 @@ in with final; {
|
|||
);
|
||||
|
||||
# 2024/02/27: upstreaming is blocked on wlroots-hyprland (libei)
|
||||
# needs binfmt: "meson.build:420:8: ERROR: Dependency lookup for scdoc with method 'pkgconfig' failed: Pkg-config binary for machine 0 not found. Giving up."
|
||||
waybar = (prev.waybar.override {
|
||||
runTests = false; #< upstream expects `catch2_3` as a runtime requirement
|
||||
hyprlandSupport = false; # doesn't cross compile
|
||||
# fixes: "/nix/store/sc1pz0zaqwpai24zh7xx0brjinflmc6v-aarch64-unknown-linux-gnu-binutils-2.40/bin/aarch64-unknown-linux-gnu-ld: /nix/store/ghxl1zrfnvh69dmv7xa1swcbyx06va4y-wayland-1.22.0/lib/libwayland-client.so: error adding symbols: file in wrong format"
|
||||
wrapGAppsHook = wrapGAppsNoGuiHook;
|
||||
}).overrideAttrs (upstream: {
|
||||
nativeBuildInputs = upstream.nativeBuildInputs ++ [
|
||||
buildPackages.wayland-scanner
|
||||
(makeShellWrapper.overrideAttrs (_: {
|
||||
# else it tries to invoke the host CC compiler (??)
|
||||
shell = runtimeShell;
|
||||
}))
|
||||
];
|
||||
# buildInputs = upstream.buildInputs ++ [ catch2_3 ]; #< either this or override `runTests = false`
|
||||
mesonFlags = upstream.mesonFlags ++ [
|
||||
# fixes "Dependency lookup for scdoc with method 'pkgconfig' failed: Pkg-config binary for machine 0 not found. Giving up."
|
||||
"-Dman-pages=disabled"
|
||||
];
|
||||
});
|
||||
# out for PR: <https://github.com/NixOS/nixpkgs/pull/292415>
|
||||
# waybar = (prev.waybar.override {
|
||||
# runTests = false; #< upstream expects `catch2_3` as a runtime requirement
|
||||
# hyprlandSupport = false; # doesn't cross compile
|
||||
# # fixes: "/nix/store/sc1pz0zaqwpai24zh7xx0brjinflmc6v-aarch64-unknown-linux-gnu-binutils-2.40/bin/aarch64-unknown-linux-gnu-ld: /nix/store/ghxl1zrfnvh69dmv7xa1swcbyx06va4y-wayland-1.22.0/lib/libwayland-client.so: error adding symbols: file in wrong format"
|
||||
# wrapGAppsHook = wrapGAppsNoGuiHook;
|
||||
# }).overrideAttrs (upstream: {
|
||||
# nativeBuildInputs = upstream.nativeBuildInputs ++ [
|
||||
# buildPackages.wayland-scanner
|
||||
# (makeShellWrapper.overrideAttrs (_: {
|
||||
# # else it tries to invoke the host CC compiler (??)
|
||||
# shell = runtimeShell;
|
||||
# }))
|
||||
# ];
|
||||
# # buildInputs = upstream.buildInputs ++ [ catch2_3 ]; #< either this or override `runTests = false`
|
||||
# mesonFlags = upstream.mesonFlags ++ [
|
||||
# # fixes "Dependency lookup for scdoc with method 'pkgconfig' failed: Pkg-config binary for machine 0 not found. Giving up."
|
||||
# "-Dman-pages=disabled"
|
||||
# ];
|
||||
# });
|
||||
|
||||
webkitgtk = prev.webkitgtk.overrideAttrs (upstream: {
|
||||
# fixes "wayland-scanner: line 5: syntax error: unterminated quoted string"
|
||||
|
@ -2062,13 +2062,13 @@ in with final; {
|
|||
});
|
||||
|
||||
# 2024/02/29: upstreaming is blocked on libei (unless Xwayland config option is disabled in nixpkgs)
|
||||
# implemented on pr-wlroots-cross branch
|
||||
wlroots = prev.wlroots.overrideAttrs (upstream: {
|
||||
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
|
||||
# incorrectly specified as `buildInputs` in nixpkgs.
|
||||
hwdata
|
||||
];
|
||||
});
|
||||
# out for PR: <https://github.com/NixOS/nixpkgs/pull/292415>
|
||||
# wlroots = prev.wlroots.overrideAttrs (upstream: {
|
||||
# nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
|
||||
# # incorrectly specified as `buildInputs` in nixpkgs.
|
||||
# hwdata
|
||||
# ];
|
||||
# });
|
||||
|
||||
# wrapFirefox = prev.wrapFirefox.override {
|
||||
# buildPackages = buildPackages // {
|
||||
|
|
Loading…
Reference in New Issue