summary refs log tree commit diff
path: root/pkgs/misc/ananicy-cpp
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-11-08 17:31:01 +0200
committerArtturin <Artturin@artturin.com>2021-11-11 02:05:42 +0200
commit3914c5dba6a18b59b96b23910c12fa68c03c74c3 (patch)
tree817f39072b649b9ca511acc6ea4f693e70b5dccf /pkgs/misc/ananicy-cpp
parente5b0c95514d00a12b39f70f99e42070437b5b85e (diff)
ananicy-cpp: init at unstable-2021-10-13
Diffstat (limited to 'pkgs/misc/ananicy-cpp')
-rw-r--r--pkgs/misc/ananicy-cpp/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/misc/ananicy-cpp/default.nix b/pkgs/misc/ananicy-cpp/default.nix
new file mode 100644
index 0000000000000..25bcaec132677
--- /dev/null
+++ b/pkgs/misc/ananicy-cpp/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, gcc11Stdenv
+, fetchFromGitLab
+, makeWrapper
+, cmake
+, spdlog
+, nlohmann_json
+, systemd
+}:
+
+gcc11Stdenv.mkDerivation rec {
+  pname = "ananicy-cpp";
+  version = "unstable-2021-10-13";
+
+  src = fetchFromGitLab {
+    owner = "ananicy-cpp";
+    repo = "ananicy-cpp";
+    rev = "6a14fe7353221c89347eddbbcafb35cf5fee4758";
+    sha256 = "sha256-V0QPXC17ZD2c4MK3DAkzoPgKOU5V5BjfQKUk7I6f8WM=";
+  };
+
+  nativeBuildInputs = [
+    makeWrapper
+    cmake
+  ];
+
+  buildInputs = [
+    spdlog
+    nlohmann_json
+    systemd
+  ];
+
+  cmakeFlags = [
+    "-DUSE_EXTERNAL_JSON=yON"
+    "-DUSE_EXTERNAL_SPDLOG=ON"
+    "-DUSE_EXTERNAL_FMTLIB=ON"
+  ];
+
+  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 ];
+  };
+}