Skip to content

Commit

Permalink
variant-lite: init at 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Titaniumtown committed Jan 10, 2025
1 parent 47133e9 commit 293b64e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/by-name/gp/gpt4all/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
qt6,
fmt,
shaderc,
variant-lite,
vulkan-headers,
wayland,
cudaSupport ? config.cudaSupport,
Expand Down Expand Up @@ -53,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs =
[
expected-lite
variant-lite
fmt
qt6.qtwayland
qt6.qtquicktimeline
Expand Down
34 changes: 34 additions & 0 deletions pkgs/by-name/va/variant-lite/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 293b64e

Please sign in to comment.