summary refs log tree commit diff
path: root/pkgs/tools/misc/iay
diff options
context:
space:
mode:
authorAaqa Ishtyaq <aaqaishtyaq@gmail.com>2022-12-18 18:39:10 +0530
committerAaqa Ishtyaq <aaqaishtyaq@gmail.com>2022-12-20 19:04:25 +0530
commit1bf3622e485e7fc724ca3e1fb98b0b2aa1fc14c3 (patch)
tree6d0008a72cb58c9d91ad456c7fae06f968420f16 /pkgs/tools/misc/iay
parentcaf6b766b8e76daef3e36c13c29f5438a297c1a1 (diff)
iay: init at v0.4.0
add bash/zsh prompt (aaqaishtyaq/iay).

Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
Diffstat (limited to 'pkgs/tools/misc/iay')
-rw-r--r--pkgs/tools/misc/iay/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/misc/iay/default.nix b/pkgs/tools/misc/iay/default.nix
new file mode 100644
index 0000000000000..9c8b0a47ab867
--- /dev/null
+++ b/pkgs/tools/misc/iay/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, openssl
+, pkg-config
+, AppKit
+, Cocoa
+, Foundation
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "iay";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "aaqaishtyaq";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0r2yp34gxkh32amrysfj1jg543dh0kyqxzcx0zyi6a8y9232d8ky";
+  };
+
+  cargoHash = "sha256-SMqiwM6LrXXjV4Mb2BY9WbeKKPkxiYxPyZ4aepVIAqU=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [
+    openssl
+  ]
+  ++ lib.optionals stdenv.isDarwin [
+    AppKit
+    Cocoa
+    Foundation
+    Security
+  ];
+
+  NIX_LDFLAGS = lib.optionals stdenv.isDarwin [ "-framework" "AppKit" ];
+
+  meta = with lib; {
+    description =
+      "Minimalistic, blazing-fast, and extendable prompt for bash and zsh";
+    homepage = "https://github.com/aaqaishtyaq/iay";
+    license = licenses.mit;
+    maintainers = with maintainers; [ aaqaishtyaq ];
+  };
+}