aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/microsoft_gsl
diff options
context:
space:
mode:
authorDavid Terry <davidterry@posteo.de>2017-02-16 00:11:38 +0100
committerRobin Gloster <mail@glob.in>2017-02-17 02:14:12 +0100
commit90d225db766baa997a2ded830de968d27432b9d8 (patch)
tree26b3d0850e757b6fc8e78f2ba31d062ac8fc8a20 /pkgs/development/libraries/microsoft_gsl
parent6515854248601b78ef08f52c3de7b80858892d5f (diff)
microsoft_gsl: init at 2017-02-13
Diffstat (limited to 'pkgs/development/libraries/microsoft_gsl')
-rw-r--r--pkgs/development/libraries/microsoft_gsl/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/microsoft_gsl/default.nix b/pkgs/development/libraries/microsoft_gsl/default.nix
new file mode 100644
index 000000000000..b419eccfe794
--- /dev/null
+++ b/pkgs/development/libraries/microsoft_gsl/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchgit, cmake }:
+
+stdenv.mkDerivation rec {
+ name = "microsoft_gsl-${version}";
+ version = "2017-02-13";
+
+ src = fetchgit {
+ url = "https://github.com/Microsoft/GSL.git";
+ rev = "3819df6e378ffccf0e29465afe99c3b324c2aa70";
+ sha256 = "03d17mnx6n175aakin313308q14wzvaa9pd0m1yfk6ckhha4qf35";
+ };
+
+ # build phase just runs the unit tests
+ buildInputs = [ cmake ];
+
+ installPhase = ''
+ mkdir -p $out/include
+ mv ../include/ $out/
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Functions and types that are suggested for use by the C++ Core Guidelines";
+ homepage = https://github.com/Microsoft/GSL;
+ license = licenses.mit;
+ platforms = platforms.all;
+ maintainers = with maintainers; [ xwvvvvwx ];
+ };
+}