Merge pull request #202439 from vnepogodin/ananicy-cpp-update

ananicy-cpp: unstable-2021-10-13 -> 1.0.1
This commit is contained in:
Jonas Heinrich 2022-11-24 13:36:58 +01:00 committed by GitHub
commit 8f04819a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,28 @@
{ lib
, gcc11Stdenv
, stdenv
, fetchFromGitLab
, makeWrapper
, cmake
, pkg-config
, spdlog
, nlohmann_json
, systemd
}:
gcc11Stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "ananicy-cpp";
version = "unstable-2021-10-13";
version = "1.0.1";
src = fetchFromGitLab {
owner = "ananicy-cpp";
repo = "ananicy-cpp";
rev = "6a14fe7353221c89347eddbbcafb35cf5fee4758";
sha256 = "sha256-V0QPXC17ZD2c4MK3DAkzoPgKOU5V5BjfQKUk7I6f8WM=";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-07LWIC2y6b1iiPCVa8mlBYAnSmahm0oJ2d3/uW4rC94=";
};
nativeBuildInputs = [
makeWrapper
cmake
pkg-config
];
buildInputs = [
@ -31,11 +32,17 @@ gcc11Stdenv.mkDerivation rec {
];
cmakeFlags = [
"-DUSE_EXTERNAL_JSON=yON"
"-DUSE_EXTERNAL_JSON=ON"
"-DUSE_EXTERNAL_SPDLOG=ON"
"-DUSE_EXTERNAL_FMTLIB=ON"
"-DVERSION=${version}"
];
postInstall = ''
rm -rf "$out"/include
rm -rf "$out"/lib/cmake
'';
meta = with lib; {
homepage = "https://gitlab.com/ananicy-cpp/ananicy-cpp";
description = "Rewrite of ananicy in c++ for lower cpu and memory usage";