commit c00bc82fb9524c1ae49148d891ea5da5fbe9b880
parent dd8ee1c879b10f75a9c142bf75089f76661afe4e
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 4 Oct 2022 12:31:43 +0300
Add gsl-lite
Diffstat:
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -310,6 +310,7 @@ lib.makeScope newScope (
glauth = callPackage ./misc/glauth {
buildGoModule = pkgs.buildGo117Module;
};
+ gsl-lite = callPackage ./misc/gsl-lite { };
how-to-use-pvs-studio-free = callPackage ./misc/pvs-studio/how-to-use-pvs-studio-free.nix { };
huami-token = callPackage ./misc/huami-token { };
imsg-compat = callPackage ./misc/imsg-compat { };
diff --git a/pkgs/misc/gsl-lite/default.nix b/pkgs/misc/gsl-lite/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, cmake, doxygen, boost }:
+
+stdenv.mkDerivation rec {
+ pname = "gsl-lite";
+ version = "0.40.0";
+
+ src = fetchFromGitHub {
+ owner = "gsl-lite";
+ repo = "gsl-lite";
+ rev = "v${version}";
+ hash = "sha256-80ksT8XFn2LLMr63gKGZD/0+FDLnAtFyMpuuSjtoBlk=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ meta = with lib; {
+ description = "Guidelines Support Library for C++98, C++11 up";
+ inherit (src.meta) homepage;
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}