1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 ninja,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "expected-lite";
11 version = "0.9.0";
12
13 src = fetchFromGitHub {
14 owner = "martinmoene";
15 repo = "expected-lite";
16 rev = "v${version}";
17 hash = "sha256-LRXxUaDQT5q9dXK2uYFvCgEuGWEHKr95lfdGTGjke0g=";
18 };
19
20 nativeBuildInputs = [
21 cmake
22 ninja
23 ];
24
25 doCheck = true;
26
27 meta = with lib; {
28 description = ''
29 Expected objects in C++11 and later in a single-file header-only library
30 '';
31 homepage = "https://github.com/martinmoene/expected-lite";
32 changelog = "https://github.com/martinmoene/expected-lite/blob/${src.rev}/CHANGES.txt";
33 license = licenses.boost;
34 maintainers = with maintainers; [ azahi ];
35 };
36}