depot/third_party/nixpkgs/pkgs/development/libraries/expected-lite/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
733 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, ninja
}:
stdenv.mkDerivation rec {
pname = "expected-lite";
version = "0.8.0";
src = fetchFromGitHub {
owner = "martinmoene";
repo = "expected-lite";
rev = "v${version}";
hash = "sha256-8Lf+R7wC7f2YliXqhR6pwVVSLZ6qheu7YOV5jHc0Cjc=";
};
nativeBuildInputs = [ cmake ninja ];
doCheck = true;
meta = with lib; {
description = ''
Expected objects in C++11 and later in a single-file header-only library
'';
homepage = "https://github.com/martinmoene/expected-lite";
changelog = "https://github.com/martinmoene/expected-lite/blob/${src.rev}/CHANGES.txt";
license = licenses.boost;
maintainers = with maintainers; [ azahi ];
};
}