Hi, I am trying to make a derivation that build a newer version of tuifimanager
that include some experimental features (drag and drop).
I added the newly required library to the existing derivation including pynput
, requests
, pyside6
and xlib-python
.
However, I am stuck on this error, that I couldn’t resolve:
Cannot mix incompatible Qt library (6.6.1) with this library (6.6.3)
here is the flake that I have:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachSystem [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
] (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
formatter = pkgs.alejandra;
packages = rec {
default = tuifi-manager;
tuifi-manager = let
pyproject = builtins.readFile ./pyproject.toml;
version = (builtins.fromTOML pyproject).project.version;
pypkgs = pkgs.python311.pkgs;
in
pypkgs.buildPythonApplication {
pname = "tuifi-manager";
inherit version;
src = ./.;
format = "pyproject";
nativeBuildInputs = [
pypkgs.setuptools
pypkgs.setuptools-scm
];
propagatedBuildInputs = [
pypkgs.send2trash
pypkgs.unicurses
pypkgs.pynput
pypkgs.requests
pypkgs.pyside6
pypkgs.xlib
];
pythonImportsCheck = ["TUIFIManager"];
meta.mainProgram = "tuifi";
};
};
});
}