1{ lib, stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "tl-expected";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "TartanLlama";
9 repo = "expected";
10 rev = "v${version}";
11 hash = "sha256-AuRU8VI5l7Th9fJ5jIc/6mPm0Vqbbt6rY8QCCNDOU50=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 meta = with lib; {
17 description = "C++11/14/17 std::expected with functional-style extensions";
18 homepage = "https://tl.tartanllama.xyz/en/latest/api/expected.html";
19 license = licenses.cc0;
20 platforms = platforms.all;
21 maintainers = [ ];
22 };
23}