{ lib, stdenv, fetchFromGitHub, cmake, }: stdenv.mkDerivation (finalAttrs: { pname = "span-lite"; version = "0.11.0"; src = fetchFromGitHub { owner = "nonstd-lite"; repo = "span-lite"; rev = "v${finalAttrs.version}"; hash = "sha256-BYRSdGzIvrOjPXxeabMj4tPFmQ0wfq7y+zJf6BD/bTw="; }; nativeBuildInputs = [ cmake ]; meta = { description = "C++20-like span for C++98, C++11 and later in a single-file header-only library"; homepage = "https://github.com/nonstd-lite/span-lite"; license = lib.licenses.bsd1; maintainers = with lib.maintainers; [ icewind1991 ]; platforms = lib.platforms.all; }; })