depot/third_party/nixpkgs/pkgs/development/libraries/microsoft-gsl/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
928 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, gtest
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "microsoft-gsl";
version = "4.0.0";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "GSL";
rev = "v${version}";
hash = "sha256-cXDFqt2KgMFGfdh6NGE+JmP4R0Wm9LNHM0eIblYe6zU=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ gtest ];
doCheck = true;
meta = with lib; {
description = "C++ Core Guideline support library";
longDescription = ''
The Guideline Support Library (GSL) contains functions and types that are suggested for
use by the C++ Core Guidelines maintained by the Standard C++ Foundation.
This package contains Microsoft's implementation of GSL.
'';
homepage = "https://github.com/Microsoft/GSL";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice yuriaisaka ];
};
}