{ lib, stdenv, fetchFromGitHub, wayland-scanner, nix-update-script, nixosTests, }: stdenv.mkDerivation { pname = "cosmic-protocols"; version = "0-unstable-2026-06-25"; src = fetchFromGitHub { owner = "pop-os"; repo = "cosmic-protocols"; rev = "32283d76a8d0342da74c4cc022a533c52dcf378f"; hash = "sha256-LUAmB+3+doRZOJbVURaIInaQuV/LXCKfoWHA28ihAMo="; }; __structuredAttrs = true; strictDeps = true; nativeBuildInputs = [ wayland-scanner ]; makeFlags = [ "PREFIX=${placeholder "out"}" ]; passthru = { tests = { inherit (nixosTests) cosmic cosmic-autologin cosmic-noxwayland cosmic-autologin-noxwayland ; }; updateScript = nix-update-script { extraArgs = [ "--version" "branch=HEAD" ]; }; }; meta = { homepage = "https://github.com/pop-os/cosmic-protocols"; description = "Additional wayland-protocols used by the COSMIC desktop environment"; license = with lib.licenses; [ mit gpl3Only ]; teams = [ lib.teams.cosmic ]; platforms = lib.platforms.linux; }; }