depot/third_party/nixpkgs/pkgs/development/libraries/span-lite/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

29 lines
636 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "span-lite";
version = "0.10.3";
src = fetchFromGitHub {
owner = "martinmoene";
repo = "span-lite";
rev = "v${version}";
hash = "sha256-WfoyyPLBqXSGGATWN/wny6P++3aCmQMOMLCARhB+R3c=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "A C++20-like span for C++98, C++11 and later in a single-file header-only library";
homepage = "https://github.com/martinmoene/span-lite";
license = lib.licenses.bsd1;
maintainers = with lib.maintainers; [ icewind1991 ];
platforms = lib.platforms.all;
};
}