{ lib, stdenv, fetchFromGitea, pkg-config, cmake, ninja, spirv-tools, vulkan-headers, qt6, cpptrace, jemalloc, cli11, wayland, wayland-protocols, wayland-scanner, libxcb, libdrm, libgbm, pipewire, pam, glib, polkit, }: stdenv.mkDerivation (finalAttrs: { pname = "quickshell"; version = "0.3.0"; # github mirror: https://github.com/quickshell-mirror/quickshell src = fetchFromGitea { domain = "git.outfoxxed.me"; owner = "quickshell"; repo = "quickshell"; tag = "v${finalAttrs.version}"; hash = "sha256-gU+VGpwGJ2vvg0mtYqVvj5u+2LteuHlpokH6JSAtueY="; }; nativeBuildInputs = [ cmake ninja qt6.qtshadertools spirv-tools vulkan-headers wayland-scanner qt6.wrapQtAppsHook pkg-config ]; buildInputs = [ qt6.qtbase qt6.qtdeclarative qt6.qtwayland qt6.qtsvg cli11 wayland wayland-protocols libdrm libgbm cpptrace jemalloc libxcb pam pipewire glib polkit ]; cmakeFlags = [ (lib.cmakeFeature "DISTRIBUTOR" "Nixpkgs") (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 = "Flexible QtQuick based desktop shell toolkit"; license = lib.licenses.lgpl3Only; platforms = lib.platforms.linux; mainProgram = "quickshell"; maintainers = with lib.maintainers; [ outfoxxed ]; }; })