From 293b64e4425ae4776756433b02c635c71f3456c4 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 25 Dec 2024 20:28:40 +0100 Subject: [PATCH] variant-lite: init at 2.0.0 --- pkgs/by-name/gp/gpt4all/package.nix | 2 ++ pkgs/by-name/va/variant-lite/package.nix | 34 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/by-name/va/variant-lite/package.nix diff --git a/pkgs/by-name/gp/gpt4all/package.nix b/pkgs/by-name/gp/gpt4all/package.nix index 632cd6337696df..363b5030f00413 100644 --- a/pkgs/by-name/gp/gpt4all/package.nix +++ b/pkgs/by-name/gp/gpt4all/package.nix @@ -10,6 +10,7 @@ qt6, fmt, shaderc, + variant-lite, vulkan-headers, wayland, cudaSupport ? config.cudaSupport, @@ -53,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ expected-lite + variant-lite fmt qt6.qtwayland qt6.qtquicktimeline diff --git a/pkgs/by-name/va/variant-lite/package.nix b/pkgs/by-name/va/variant-lite/package.nix new file mode 100644 index 00000000000000..652cdf21a69c03 --- /dev/null +++ b/pkgs/by-name/va/variant-lite/package.nix @@ -0,0 +1,34 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + ninja, +}: + +stdenv.mkDerivation rec { + pname = "variant-lite"; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "martinmoene"; + repo = "variant-lite"; + rev = "v${version}"; + hash = "sha256-zLyzNzeD0C4e7CYqCCsPzkqa2cH5pSbL9vNVIxdkEfc="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; + + doCheck = true; + + meta = with lib; { + description = ''A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library''; + homepage = "https://github.com/martinmoene/variant-lite"; + changelog = "https://github.com/martinmoene/variant-lite/blob/${src.rev}/CHANGES.txt"; + license = licenses.boost; + maintainers = with maintainers; [ titaniumtown ]; + }; +}