2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gtest
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "microsoft-gsl";
|
|
|
|
version = "4.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Microsoft";
|
|
|
|
repo = "GSL";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-cXDFqt2KgMFGfdh6NGE+JmP4R0Wm9LNHM0eIblYe6zU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ gtest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ Core Guideline support library";
|
|
|
|
longDescription = ''
|
2021-07-24 12:14:16 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-07-24 12:14:16 +00:00
|
|
|
homepage = "https://github.com/Microsoft/GSL";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-08-08 23:34:03 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice yuriaisaka ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|