Merge pull request #206481 from ken-matsui/mitamaCppResult

mitama-cpp-result: init at 9.3.0
This commit is contained in:
Anderson Torres 2022-12-18 19:02:43 -03:00 committed by GitHub
commit ba46d30d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mitama-cpp-result";
version = "9.3.0";
src = fetchFromGitHub {
owner = "LoliGothick";
repo = "mitama-cpp-result";
rev = "v${finalAttrs.version}";
hash = "sha256-CWYVPpmPIZZTsqXKh+Ft3SlQ4C9yjUof1mJ8Acn5kmM=";
};
nativeBuildInputs = [
cmake
];
meta = with lib; {
homepage = "https://github.com/LoliGothick/mitama-cpp-result";
description = "A Library that provides `result<T, E>` and `maybe<T>` and monadic functions for them";
longDescription = ''
mitama-cpp-result is the C++17 libraries for error handling without exceptions.
mitama-cpp-result provides `result<T, E>`, `maybe<T>`, and associated monadic functions
(like Result and Option in Programming Language Rust).
'';
license = licenses.mit;
maintainers = with maintainers; [ ken-matsui ];
platforms = platforms.unix;
};
})
# TODO [ ken-matsui ]: tests

View File

@ -14973,6 +14973,8 @@ with pkgs;
mint = callPackage ../development/compilers/mint { };
mitama-cpp-result = callPackage ../development/libraries/mitama-cpp-result { };
mitscheme = callPackage ../development/compilers/mit-scheme
{ stdenv = gcc10StdenvCompat; texLive = texlive.combine { inherit (texlive) scheme-small epsf texinfo; }; };