trying to find out why I can't build with only cargo

This commit is contained in:
Chris Cochrun 2025-07-27 07:19:26 -05:00
parent 0c6dd01aed
commit eef1903557

View file

@ -32,6 +32,7 @@
"rustfmt"
])
rust-analyzer
qt6.wrapQtAppsHook
];
bi = with pkgs; [
@ -43,7 +44,6 @@
cmake
kdePackages.extra-cmake-modules
pkg-config
qt6.wrapQtAppsHook
makeWrapper
openssl.dev
@ -56,7 +56,7 @@
# clang-format
qt6.full
qt6.qttools
qt6.qtbase
# qt6.qtbase
# qt6.qtquickcontrols2
# qt6.qtx11extras
qt6.qtmultimedia
@ -106,8 +106,8 @@
CMAKE_C_COMPILER = "${pkgs.gcc}/bin/gcc";
CMAKE_CXX_COMPILER = "${pkgs.gcc}/bin/g++";
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = true;
# KDE_INCLUDEDIR = "${pkgs.kdePackages.kirigami.dev}/include";
# KDE_QMLDIR = "${pkgs.kdePackages.kirigami.dev}/lib/qt-6/qml/org/kde/kirigami/";
# KDE_INCLUDEDIR = "${pkgs.kdePackages.kirigami}/include";
# KDE_QMLDIR = "${pkgs.kdePackages.kirigami}/lib/qt-6/qml/";
# This creates the proper qt env so that plugins are found right.
shellHook = ''
@ -117,6 +117,12 @@
sed "/^exec/d" -i "$setQtEnvironment"
source "$setQtEnvironment"
'';
# shellHook = ''
# export CMAKE_PREFIX_PATH="${pkgs.qt6.full}/lib/cmake/Qt6:$CMAKE_PREFIX_PATH"
# bashdir=$(mktemp -d)
# makeWrapper "$(type -p bash)" "$bashdir/bash" "''${qtWrapperArgs[@]}"
# exec "$bashdir/bash"
# '';
DATABASE_URL =
"sqlite:///home/chris/.local/share/lumina/library-db.sqlite3";
};