From 497269d8596f271f280bdcf9dbe2d518c19b9995 Mon Sep 17 00:00:00 2001 From: Syed Ahkam Date: Sat, 29 Jun 2024 20:33:49 +0530 Subject: [PATCH] feat: add a simple nix package derivation --- default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..aee2351 --- /dev/null +++ b/default.nix @@ -0,0 +1,11 @@ +{ pkgs ? import { } }: +pkgs.rustPlatform.buildRustPackage rec { + pname = "android-cli"; + version = "0.2"; + cargoLock.lockFile = ./Cargo.lock; + src = pkgs.lib.cleanSource ./.; + + OPENSSL_NO_VENDOR = 1; + nativeBuildInputs = with pkgs; [pkg-config]; + buildInputs = with pkgs; [ openssl ]; +} \ No newline at end of file