about summary refs log tree commit diff
path: root/kittybox.nix
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox.nix')
-rw-r--r--kittybox.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/kittybox.nix b/kittybox.nix
new file mode 100644
index 0000000..f42884a
--- /dev/null
+++ b/kittybox.nix
@@ -0,0 +1,19 @@
+{ stdenv, lib, openssl, zlib, pkg-config, protobuf, naersk-lib, lld, mold }:
+naersk-lib.buildPackage {
+  pname = "kittybox";
+  version = "0.1.0";
+
+  src = ./kittybox-rs;
+
+  checkInputs = [ openssl.dev zlib ];
+  nativeBuildInputs = [ pkg-config protobuf ];
+  nativeCheckInputs = [ pkg-config ];
+
+  doCheck = stdenv.hostPlatform == stdenv.targetPlatform;
+
+  meta = with lib.meta; {
+    maintainers = with lib.maintainers; [ vikanezrimaya ];
+    platforms = ["aarch64-linux" "x86_64-linux"];
+    mainProgram = "kittybox";
+  };
+}