a71eb02b76
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
53 lines
996 B
Nix
53 lines
996 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, cmake
|
|
, pkg-config
|
|
, spdlog
|
|
, nlohmann_json
|
|
, systemd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ananicy-cpp";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "ananicy-cpp";
|
|
repo = "ananicy-cpp";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "sha256-07LWIC2y6b1iiPCVa8mlBYAnSmahm0oJ2d3/uW4rC94=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
spdlog
|
|
nlohmann_json
|
|
systemd
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-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";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ artturin ];
|
|
};
|
|
}
|