Skip to content
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

Does not work on nixos stable #14

Closed
Quackification opened this issue Jan 8, 2025 · 14 comments
Closed

Does not work on nixos stable #14

Quackification opened this issue Jan 8, 2025 · 14 comments

Comments

@Quackification
Copy link

Quackification commented Jan 8, 2025

NixOS 24.11 currently has qt6 version 6.8.0, but hyprsysteminfo requires 6.8.1.
For now, I'll just use url = "github:hyprwm/hyprsysteminfo/8b271e2ba39a5a9299e4e7bb60245a71704f5a89"

@vaxerski
Copy link
Member

vaxerski commented Jan 8, 2025

@outfoxxed

@outfoxxed
Copy link
Member

We shouldn't be using anything that requires 6.8.1. Make sure you inherit nixpkgs in your flake input.

@Quackification
Copy link
Author

running hyprsysteminfo with

hyprsysteminfo ={
      url = "github:hyprwm/hyprsysteminfo";   
}; 
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";

leads to

Cannot mix incompatible Qt library (6.8.0) with this library (6.8.1)
Aborted (core dumped)

Building hyprsysteminfo with

nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
hyprsysteminfo ={
  url = "github:hyprwm/hyprsysteminfo";
  inputs.nixpkgs.follows = "nixpkgs";    
}; 

leads to
Requested 'hyprlang >= 0.6.0' but version of hyprlang is 0.5.2

@fufexan
Copy link
Member

fufexan commented Jan 9, 2025

Should be fixed now, update your flake and try again.

@Quackification
Copy link
Author

Building using

nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
hyprsysteminfo ={
  url = "github:hyprwm/hyprsysteminfo";
  inputs.nixpkgs.follows = "nixpkgs";    
}; 

leads to

[27/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprland-quick-style-impl_autogen/mocs_compilation.cpp.o
ninja: build stopped: subcommand failed.

@outfoxxed
Copy link
Member

Can you show the whole build log?

@Quackification
Copy link
Author

Quackification commented Jan 10, 2025

Running phase: qtPreHook
@nix { "action": "setPhase", "phase": "qtPreHook" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/xv7i50jb4rvcnyr5gaq5npam9kcgp803-b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source
source root is b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/share/doc/hyprland-qt-support -DCMAKE_INSTALL_INFODIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/include -DCMAKE_INSTALL_SBINDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/ranlib -DCMAKE_AR=/nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545 -DINSTALL_QML_PREFIX:STRING=lib/qt-6/qml
-- The CXX compiler identification is GNU 13.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- QML install dir: /nix/store/q11hpkzgfkw426dxyd0bkf49hz273nvw-hyprland-qt-support-0.1.0+date=2025-01-09_16c3545/lib/qt-6/qml
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /nix/store/ri85b3kn22dmr4yiimfsgd6r5x7zgk4z-libglvnd-1.7.0/lib/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /nix/store/v5wvqz9hwb8n70xxqs097kz5k3bvflq8-libxkbcommon-1.7.0/lib/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /nix/store/j3x549hy030lm18b7kcbdl1b4fw08a9m-vulkan-headers-1.3.296.0/include
-- Found PkgConfig: /nix/store/16h31npnbgpkhxp1041dsifiklbw4mpr-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for module 'hyprlang>=0.6.0'
--   Found hyprlang, version 0.6.0
-- Configuring done (1.2s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_C_COMPILER
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_POLICY_DEFAULT_CMP0025

-- Build files have been written to: /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j16
[1/51] Copying HyprlandStyle.qml to /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/qml/org/hyprland/style/impl/HyprlandStyle.qml
[2/51] Copying MotionBehavior.qml to /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/qml/org/hyprland/style/impl/MotionBehavior.qml
[3/51] Copying Button.qml to /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/qml/org/hyprland/style/Button.qml
[4/51] Copying CheckBox.qml to /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/qml/org/hyprland/style/CheckBox.qml
[5/51] Copying TextField.qml to /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/qml/org/hyprland/style/TextField.qml
[6/51] Automatic MOC and UIC for target hyprland-quick-style-implplugin
[7/51] Automatic MOC and UIC for target hyprland-quick-styleplugin
[8/51] Automatic MOC and UIC for target hyprland-quick-style-impl
[9/51] Running AUTOMOC file extraction for target hyprland-quick-style-impl
[10/51] Running rcc for resource qmake_org_hyprland_style_impl
[11/51] Running rcc for resource hyprland-quick-style-impl_raw_qml_0
[12/51] Running moc --collect-json for target hyprland-quick-style-impl
[13/51] Generating .rcc/qmlcache/hyprland-quick-style-impl_qmlcache_loader.cpp
[14/51] Automatic QML type registration for target hyprland-quick-style-impl
[15/51] Generating .rcc/qmlcache/hyprland-quick-style-impl_MotionBehavior_qml.cpp, .rcc/qmlcache/hyprland-quick-style-impl_MotionBehavior_qml.cpp.aotstats
[16/51] Generating .rcc/qmlcache/hyprland-quick-style-impl_HyprlandStyle_qml.cpp, .rcc/qmlcache/hyprland-quick-style-impl_HyprlandStyle_qml.cpp.aotstats
[17/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-implplugin.dir/hyprland-quick-style-implplugin_autogen/mocs_compilation.cpp.o
[18/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/.qt/rcc/qrc_qmake_org_hyprland_style_impl.cpp.o
[19/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/.qt/rcc/qrc_hyprland-quick-style-impl_raw_qml_0.cpp.o
[20/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprlandstyle.cpp.o
FAILED: src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprlandstyle.cpp.o 
/nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMETA_LIB -DQT_QMLMODELS_LIB -DQT_QMLWORKERSCRIPT_LIB -DQT_QML_LIB -DQT_QUICK_LIB -Dhyprland_quick_style_impl_EXPORTS -I/build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/build/src/style/impl/hyprland-quick-style-impl_autogen/include -I/build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/src/style/impl -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQml/6.8.0 -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQml/6.8.0/QtQml -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtCore/6.8.0 -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtCore/6.8.0/QtCore -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtCore -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/mkspecs/linux-g++ -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQml -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQmlIntegration -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtNetwork -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQuick -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtGui -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQmlMeta -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQmlModels -isystem /nix/store/x3fzgdyyw2k4q8bj3qsrjy7jsdk0lwgl-qtdeclarative-6.8.0/include/QtQmlWorkerScript -isystem /nix/store/9prg7kzx3689q4ki17c6g1bwk4wj6wz2-qtbase-6.8.0/include/QtOpenGL -O3 -DNDEBUG -std=gnu++23 -fPIC -fPIC -MD -MT src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprlandstyle.cpp.o -MF src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprlandstyle.cpp.o.d -o src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprlandstyle.cpp.o -c /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/src/style/impl/hyprlandstyle.cpp
In file included from /build/b4g6l33ir61mq1n72qd6njgz3j4wqb6i-source/src/style/impl/hyprlandstyle.cpp:2:
/nix/store/93rj7wna01xspp816w6miw1hzl58rqx1-hyprlang-0.6.0+date=2024-12-28_55608ef-dev/include/hyprlang.hpp:11:10: fatal error: print: No such file or directory
   11 | #include <print>
      |          ^~~~~~~
compilation terminated.
[21/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-implplugin.dir/hyprland-quick-style-implplugin_org_hyprland_style_implPlugin.cpp.o
[22/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/.rcc/qmlcache/hyprland-quick-style-impl_MotionBehavior_qml.cpp.o
[23/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/.rcc/qmlcache/hyprland-quick-style-impl_HyprlandStyle_qml.cpp.o
[24/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/.rcc/qmlcache/hyprland-quick-style-impl_qmlcache_loader.cpp.o
[25/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/checkdelegate.cpp.o
[26/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprland-quick-style-impl_qmltyperegistrations.cpp.o
[27/51] Building CXX object src/style/impl/CMakeFiles/hyprland-quick-style-impl.dir/hyprland-quick-style-impl_autogen/mocs_compilation.cpp.o
ninja: build stopped: subcommand failed.

@outfoxxed
Copy link
Member

I've updated the hyprland-qt-support package to set gcc 14 as the stdenv by default. Try doing a nix flake lock --update-input hyprsysteminfo/hyprland-qt-support and rebuilding.

@Quackification
Copy link
Author

Quackification commented Jan 11, 2025

same error even though I updated flake input

@outfoxxed
Copy link
Member

same error even though I updated flake input

Including this part?

-- The CXX compiler identification is GNU 13.3.0

@vaxerski
Copy link
Member

just a general tip: for most software, you likely do not know anything about the output produced. It's better to always attach the new output, even if it seems the same to you. It might not be.

@outfoxxed
Copy link
Member

I just built it myself using nixos stable and it worked. Can you show nix flake metadata?

@Quackification
Copy link
Author

Quackification commented Jan 12, 2025

I was being stupid and I ran nix flake update before rebuilding, reverting hyprland-qt-support from 2025-01-11 to 2025-01-09. Works now. Still weird that nix flake update hyprsysteminfo uses an old version of hyprland-qt-support.

@outfoxxed
Copy link
Member

Still weird that nix flake update hyprsysteminfo uses an old version of hyprland-qt-support.

I haven't updated it yet because I was waiting on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants