Change:
<!-- Note that these are hard requirements --<!-- You can use the "Go to file" functionality on github to find the package Then you can go to the history for this package Find the latest "packagename: oldversion -newversion" commit The "newversion" is the the current version of the package --- <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- name: copyq <!-- The current version can be found easily with the same process than above for checking the master branch If an open PR is present for the package, take this version as the current one and link to the PR --current version: 3.13.0 desired version: 4.1.0 <!-- Search your package here: If no maintainer is listed for your package, tag the person that last updated the package --maintainers: Please tag this issue in your PR. Old version doesn't work correctly in Wayland / Sway. New version works correctly. There are also updated dependencies list: (from for Ubuntu)

Discussion:
<del> { lib, mkDerivation, fetchFromGitHub, cmake , qtbase, qtscript, qtwebkit, libXfixes, libXtst, qtx11extras, git , webkitSupport ? true </del> <ins> { lib , mkDerivation , fetchFromGitHub , cmake , extra-cmake-modules , qtbase , qtscript , libXfixes , libXtst , qtx11extras , git , knotifications , qtwayland , wayland , fetchpatch </ins> }: mkDerivation rec { pname = "CopyQ"; <del> version = "3.13.0"; </del> <ins> version = "4.1.0"; </ins> <del> src  = fetchFromGitHub { </del> <ins> src = fetchFromGitHub { </ins> owner = "hluk"; repo = "CopyQ"; rev = "v${version}"; <del> sha256 = "0qssyavx0dkgsyj2myqg8n7sih8niy960nyb1yknsbjm37iqraah"; </del> <ins> sha256 = "1iacnd9dn0mrajff80r2g5nlks5sch9lmpl633mnyqmih9dwx2li"; </ins> }; <del> nativeBuildInputs = [ cmake ]; </del> <ins> nativeBuildInputs = [ cmake extra-cmake-modules ]; </ins> buildInputs = [ <del> git qtbase qtscript libXfixes libXtst qtx11extras ] ++ lib.optional webkitSupport qtwebkit; </del> <ins> qtbase qtscript libXfixes libXtst qtx11extras knotifications qtwayland wayland ]; patches = [ # Install the bash completion script correctly # Remove once 4.1.1 is released (fetchpatch { url = "https://github.com/hluk/CopyQ/commit/aca7222ec28589af0b08f63686104b992d63ee42.patch"; sha256 = "0d440d0zsdzm9cd0b6c42y9qbrvxg7gdam0qmif62mr8qa0ylidl"; }) ]; postPatch = '' substituteInPlace shared/com.github.hluk.copyq.desktop.in  --replace copyq "$out/bin/copyq" ''; </ins> meta = with lib; { <del> homepage    = "https://hluk.github.io/CopyQ"; </del> <ins> homepage = "https://hluk.github.io/CopyQ"; </ins> description = "Clipboard Manager with Advanced Features"; <del> license     = licenses.gpl3; maintainers = [ maintainers.willtim ]; </del> <ins> license = licenses.gpl3Only; maintainers = with maintainers; [ willtim artturin ]; </ins> # NOTE: CopyQ supports windows and osx, but I cannot test these. # OSX build requires QT5. <del> platforms   = platforms.linux; </del> <ins> platforms = platforms.linux; </ins> }; }

confclerk = callPackage ../applications/misc/confclerk { }; <del> copyq = libsForQt514.callPackage ../applications/misc/copyq { }; </del> <ins> copyq = libsForQt5.callPackage ../applications/misc/copyq { }; </ins> corectrl = libsForQt5.callPackage ../applications/misc/corectrl { };