From 071fcf7b5d098e093ac59de3fc0d05f69a29711d Mon Sep 17 00:00:00 2001 From: Bogdan Burlacu Date: Mon, 11 Nov 2024 22:18:09 +0100 Subject: [PATCH] kumi: init at 3.1 --- pkgs/kumi/default.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/kumi/default.nix diff --git a/pkgs/kumi/default.nix b/pkgs/kumi/default.nix new file mode 100644 index 0000000..1d7c2cd --- /dev/null +++ b/pkgs/kumi/default.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, fetchFromGitHub, cmake, cpm-cmake, copacabana }: + +stdenv.mkDerivation rec { + pname = "kumi"; + version = "3.1"; + + src = fetchFromGitHub { + owner = "jfalcou"; + repo = "kumi"; + rev = "v${version}"; + hash = "sha256-9/l5GcnLRgSUq4RG7w7dzWmvpk2Z2FKJChiu6668qXo="; + }; + + nativeBuildInputs = [ cmake cpm-cmake ]; + + preConfigure = '' + mkdir cmake/cpm + cp ${cpm-cmake}/share/cpm/CPM.cmake cmake/cpm/CPM_${cpm-cmake.version}.cmake + ''; + + cmakeFlags = [ + "-DCPM_SOURCE_CACHE=./cmake" + "-DKUMI_BUILD_TEST=0" + "-DCPM_COPACABANA_SOURCE=${copacabana}" + ]; + + meta = with lib; { + description = "C++20 implementation of a tuple-like class"; + homepage = "https://github.com/jfalcou/kumi"; + license = licenses.boost; + platforms = platforms.all; + #maintainers = with maintainers; [ foolnotion ]; + }; +}