-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyprland: 0.38.1 -> 0.39.1 #304725
hyprland: 0.38.1 -> 0.39.1 #304725
Conversation
wlroots-hyprland is built statically and only used in hyprland, why not just build from submodule? |
We can do that, sure. |
@wineee I've tried making it build the subprojects directly but the derivation fails at the linking step. Not sure what might be wrong, maybe someone has an idea. EDIT: there seems to be an issue with the Nix build, as running diff --git a/pkgs/applications/window-managers/hyprwm/hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/hyprland/default.nix
index 4d8747b8f66b..cc0379ce1684 100644
--- a/pkgs/applications/window-managers/hyprwm/hyprland/default.nix
+++ b/pkgs/applications/window-managers/hyprwm/hyprland/default.nix
@@ -3,6 +3,7 @@
, fetchFromGitHub
, pkg-config
, makeWrapper
+, cmake
, meson
, ninja
, binutils
@@ -23,11 +24,12 @@
, pciutils
, systemd
, tomlplusplus
-, udis86-hyprland
+, udis86
+, python3
, wayland
, wayland-protocols
, wayland-scanner
-, wlroots-hyprland
+, wlroots
, xcbutilwm
, xwayland
, debug ? false
@@ -45,7 +47,7 @@ assert lib.assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` ha
assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland";
let
- wlr = wlroots-hyprland.override { inherit enableXWayland; };
+ # wlr = wlroots-hyprland.override { inherit enableXWayland; };
in
stdenv.mkDerivation (finalAttrs: {
pname = "hyprland" + lib.optionalString debug "-debug";
@@ -54,12 +56,13 @@ stdenv.mkDerivation (finalAttrs: {
owner = "hyprwm";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
- hash = "sha256-piBUBQsQ8R20/lX9GMJjwdntal6yfJZMVCIi21XCZ8Y=";
+ hash = "sha256-7L5rqQRYH2iyyP5g3IdXJSlATfgnKhuYMf65E48MVKw=";
+ fetchSubmodules = true;
};
patches = [
# make meson use the provided dependencies instead of the git submodules
- "${finalAttrs.src}/nix/patches/meson-build.patch"
+ # "${finalAttrs.src}/nix/patches/meson-build.patch"
];
postPatch = ''
@@ -82,6 +85,8 @@ stdenv.mkDerivation (finalAttrs: {
makeWrapper
meson
ninja
+ cmake
+ python3
pkg-config
wayland-scanner
];
@@ -93,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
];
buildInputs =
- wlr.buildInputs ++ [
+ wlroots.buildInputs ++ udis86.buildInputs ++ [
cairo
git
hyprcursor
@@ -104,13 +109,11 @@ stdenv.mkDerivation (finalAttrs: {
libinput
libxkbcommon
mesa
- udis86-hyprland
wayland
wayland-protocols
pango
pciutils
tomlplusplus
- wlr
]
++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ]
++ lib.optionals enableXWayland [ libxcb xcbutilwm xwayland ]
@@ -130,7 +133,6 @@ stdenv.mkDerivation (finalAttrs: {
];
postInstall = ''
- ln -s ${wlr}/include/wlr $dev/include/hyprland/wlroots
${lib.optionalString wrapRuntimeDeps ''
wrapProgram $out/bin/Hyprland \
--suffix PATH : ${lib.makeBinPath [binutils pciutils stdenv.cc]}
@@ -145,6 +147,6 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.bsd3;
maintainers = with maintainers; [ wozeparrot fufexan ];
mainProgram = "Hyprland";
- platforms = wlr.meta.platforms;
+ platforms = wlroots.meta.platforms;
};
}) |
Result of 13 packages failed to build:
|
Sorry for the noise but, what is blocking this? |
@leiserfg @wineee suggested we build the submodules directly instead of patching the build and using overridden derivations. But that doesn't work, as can be seen in my previous comment. I plan on using CMake instead of Meson for the Nix build, so we can merge this PR as is currently, and figure out the details later. |
Description of changes
CHANGELOG 0.39.0
CHANGELOG 0.39.1
Note: wlroots is now a fork of the upstream, and is built statically.
Closes #304143.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.