{ lib, stdenv, fetchFromGitea, pkg-config, cmake, ninja, spirv-tools, qt6, breakpad, jemalloc, cli11, wayland, wayland-protocols, wayland-scanner, libxcb, libdrm, libgbm, pipewire, pam, }: stdenv.mkDerivation (finalAttrs: { pname = "quickshell"; version = "0.2.1"; # github mirror: https://github.com/quickshell-mirror/quickshell src = fetchFromGitea { domain = "git.outfoxxed.me"; owner = "quickshell"; repo = "quickshell"; tag = "v${finalAttrs.version}"; hash = "sha256-e++Ogy91Sv7gGLMdAqZaBzbH/UmPWZ4GAt7VDCA66aU="; }; nativeBuildInputs = [ cmake ninja qt6.qtshadertools spirv-tools wayland-scanner qt6.wrapQtAppsHook pkg-config ]; buildInputs = [ qt6.qtbase qt6.qtdeclarative qt6.qtwayland qt6.qtsvg cli11 wayland wayland-protocols libdrm libgbm breakpad jemalloc libxcb pam pipewire ]; cmakeFlags = [ (lib.cmakeFeature "DISTRIBUTOR" "Nixpkgs") (lib.cmakeBool "DISTRIBUTOR_DEBUGINFO_AVAILABLE" true) (lib.cmakeFeature "INSTALL_QML_PREFIX" qt6.qtbase.qtQmlPrefix) (lib.cmakeFeature "GIT_REVISION" "tag-v${finalAttrs.version}") ]; cmakeBuildType = "RelWithDebInfo"; separateDebugInfo = true; dontStrip = false; meta = { homepage = "https://quickshell.org"; description = "Flexbile QtQuick based desktop shell toolkit"; license = lib.licenses.lgpl3Only; platforms = lib.platforms.linux; mainProgram = "quickshell"; maintainers = with lib.maintainers; [ outfoxxed ]; }; })