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