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