Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
960 B
Nix
38 lines
960 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "mitama-cpp-result";
|
|
version = "11.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LoliGothick";
|
|
repo = "mitama-cpp-result";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-YqC19AarJgz5CagNI1wyHGJ3xoUeeufDDbjFvQwDOjo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/LoliGothick/mitama-cpp-result";
|
|
description = "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 = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|
|
# TODO [ ken-matsui ]: tests
|