fuzzylite: init at 6.0

This commit is contained in:
Azat Bahawi 2023-05-01 12:13:32 +03:00
parent 9d27bdd3b5
commit 6aed0cf741
No known key found for this signature in database
GPG Key ID: C8C6BDDB3847F72B
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, ninja
, useFloat ? false
}:
stdenv.mkDerivation rec {
pname = "fuzzylite";
version = "6.0";
src = fetchFromGitHub {
owner = "fuzzylite";
repo = "fuzzylite";
rev = "v${version}";
hash = "sha256-i1txeUE/ZSRggwLDtpS8dd4uuZfHX9w3zRH0gBgGXnk=";
};
sourceRoot = "source/fuzzylite";
outputs = [ "out" "dev" ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "-Werror" "-Wno-error"
'';
nativeBuildInputs = [
cmake
ninja
];
cmakeFlags = [
"-DFL_BUILD_TESTS:BOOL=OFF"
"-DFL_USE_FLOAT:BOOL=${if useFloat then "ON" else "OFF"}"
];
meta = with lib; {
description = "A fuzzy logic control library in C++";
homepage = "https://fuzzylite.com";
changelog = "https://github.com/fuzzylite/fuzzylite/${src.rev}/release/CHANGELOG";
license = licenses.gpl3Only;
maintainers = with maintainers; [ azahi ];
platforms = platforms.all;
};
}

View File

@ -4888,6 +4888,8 @@ with pkgs;
fuzzel = callPackage ../applications/misc/fuzzel { };
fuzzylite = callPackage ../development/libraries/fuzzylite { };
flashfocus = callPackage ../misc/flashfocus { };
qt-video-wlr = libsForQt5.callPackage ../applications/misc/qt-video-wlr { };