2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-02-11 21:18:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tl-expected-unstable";
|
|
|
|
version = "2019-11-11"; # 5 commits ahead of version 1.0.0
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TartanLlama";
|
|
|
|
repo = "expected";
|
|
|
|
rev = "1d9c5d8c0da84b8ddc54bd3d90d632eec95c1f13";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
sha256 = "0rzfn9yyg70zwpxbmv22qy0015baymi2rdd65ixmcb31fgnap68i";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-11 21:18:23 +00:00
|
|
|
description = "C++11/14/17 std::expected with functional-style extensions";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tl.tartanllama.xyz/en/latest/api/expected.html";
|
2020-02-11 21:18:23 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|