at 23.11-beta 29 lines 636 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "span-lite"; 9 version = "0.10.3"; 10 11 src = fetchFromGitHub { 12 owner = "martinmoene"; 13 repo = "span-lite"; 14 rev = "v${version}"; 15 hash = "sha256-WfoyyPLBqXSGGATWN/wny6P++3aCmQMOMLCARhB+R3c="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 ]; 21 22 meta = { 23 description = "A C++20-like span for C++98, C++11 and later in a single-file header-only library"; 24 homepage = "https://github.com/martinmoene/span-lite"; 25 license = lib.licenses.bsd1; 26 maintainers = with lib.maintainers; [ icewind1991 ]; 27 platforms = lib.platforms.all; 28 }; 29}