From 3ddc412dcff5422f8b24ac85b9cf4c05cf8e2dce Mon Sep 17 00:00:00 2001 From: Evey Date: Wed, 7 Feb 2024 21:28:00 +0100 Subject: scitoken-cpp: init at v1.1.0 --- pkgs/by-name/sc/scitoken-cpp/package.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/sc/scitoken-cpp/package.nix (limited to 'pkgs/by-name/sc') diff --git a/pkgs/by-name/sc/scitoken-cpp/package.nix b/pkgs/by-name/sc/scitoken-cpp/package.nix new file mode 100644 index 0000000000000..f66c99900fb8f --- /dev/null +++ b/pkgs/by-name/sc/scitoken-cpp/package.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libuuid, curl, sqlite, openssl }: + +stdenv.mkDerivation rec { + pname = "scitoken-cpp"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "scitokens"; + repo = "scitokens-cpp"; + + rev = "v1.1.0"; + hash = "sha256-g97Ah5Oob0iOvMQegpG/AACLZCW37kA0RpSIcKOyQnE="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ + libuuid + openssl + curl + sqlite + ]; + + + meta = with lib; { + homepage = "https://github.com/scitokens/scitokens-cpp/"; + description = + "A C++ implementation of the SciTokens library with a C library interface"; + platforms = platforms.linux; + license = licenses.asl20; + maintainers = with maintainers; [ evey ]; + }; +} -- cgit 1.4.1