From 94474c6586f05a0b5616c359d9891016cdd0085f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 2 Feb 2025 14:47:41 +0100 Subject: [PATCH] install dependencies for qt gui config app --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index 57f6714..70b2541 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,20 @@ propagatedBuildInputs = [ pkgs.python312Packages.libvirt pkgs.python312Packages.pyqt5 + pkgs.libsForQt5.qtbase ]; + buildInputs = [ + pkgs.libsForQt5.qttools + ]; + nativeBuildInputs = [ + pkgs.libsForQt5.wrapQtAppsHook + ]; + # Arguments to be passed to `makeWrapper`, only used by buildPython* + preFixup = '' + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") + # You can manually patch scripts using: wrapQtApp "$out/bin/myapp". TODO: check when it's required. + wrapQtApp $out/bin/cassowary + ''; src = pkgs.fetchurl { url = "https://github.com/casualsnek/cassowary/releases/download/0.6/cassowary-0.6-py3-none-any.whl"; hash = "sha256-WWvCE1yKhz50AE8s/UG4IYT2eJKxFZinTrOBs5AGt9g=";