summary refs log tree commit diff
path: root/pkgs/development/libraries/tl-expected/default.nix
blob: 9de97229e0b67444e5d13243a21dde60d03d074b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub, cmake }:

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 ];

  meta = with stdenv.lib; {
    description = "C++11/14/17 std::expected with functional-style extensions";
    homepage = https://tl.tartanllama.xyz/en/latest/api/expected.html;
    license = licenses.cc0;
    platforms = platforms.all;
    maintainers = with maintainers; [ primeos ];
  };
}