Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "span-lite"; 10 version = "0.11.0"; 11 12 src = fetchFromGitHub { 13 owner = "martinmoene"; 14 repo = "span-lite"; 15 rev = "v${version}"; 16 hash = "sha256-BYRSdGzIvrOjPXxeabMj4tPFmQ0wfq7y+zJf6BD/bTw="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ]; 22 23 meta = { 24 description = "C++20-like span for C++98, C++11 and later in a single-file header-only library"; 25 homepage = "https://github.com/martinmoene/span-lite"; 26 license = lib.licenses.bsd1; 27 maintainers = with lib.maintainers; [ icewind1991 ]; 28 platforms = lib.platforms.all; 29 }; 30}