Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / expected-lite / default.nix
blob5b5fc620795c752a52729c978412b2d7fddb858a
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , ninja
6 }:
8 stdenv.mkDerivation rec {
9   pname = "expected-lite";
10   version = "0.6.3";
12   src = fetchFromGitHub {
13     owner = "martinmoene";
14     repo = "expected-lite";
15     rev = "v${version}";
16     hash = "sha256-Qvu/YmkivfXVGM4ZPLVt3XmOEnKWcmHpbb9xJyC2qDQ=";
17   };
19   nativeBuildInputs = [ cmake ninja ];
21   doCheck = true;
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   };