1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "mitama-cpp-result";
9 version = "9.3.0";
10
11 src = fetchFromGitHub {
12 owner = "LoliGothick";
13 repo = "mitama-cpp-result";
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-CWYVPpmPIZZTsqXKh+Ft3SlQ4C9yjUof1mJ8Acn5kmM=";
16 };
17
18 nativeBuildInputs = [
19 cmake
20 ];
21
22 meta = with lib; {
23 homepage = "https://github.com/LoliGothick/mitama-cpp-result";
24 description = "A Library that provides `result<T, E>` and `maybe<T>` and monadic functions for them";
25 longDescription = ''
26 mitama-cpp-result is the C++17 libraries for error handling without exceptions.
27
28 mitama-cpp-result provides `result<T, E>`, `maybe<T>`, and associated monadic functions
29 (like Result and Option in Programming Language Rust).
30 '';
31 license = licenses.mit;
32 maintainers = with maintainers; [ ken-matsui ];
33 platforms = platforms.unix;
34 };
35})
36# TODO [ ken-matsui ]: tests