From 1bf3622e485e7fc724ca3e1fb98b0b2aa1fc14c3 Mon Sep 17 00:00:00 2001 From: Aaqa Ishtyaq Date: Sun, 18 Dec 2022 18:39:10 +0530 Subject: [PATCH] iay: init at v0.4.0 add bash/zsh prompt (aaqaishtyaq/iay). Signed-off-by: Aaqa Ishtyaq --- pkgs/tools/misc/iay/default.nix | 47 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 51 insertions(+) create mode 100644 pkgs/tools/misc/iay/default.nix diff --git a/pkgs/tools/misc/iay/default.nix b/pkgs/tools/misc/iay/default.nix new file mode 100644 index 000000000000..9c8b0a47ab86 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ccdec4f5573..6a329deb0a6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14624,6 +14624,10 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + iay = callPackage ../tools/misc/iay { + inherit (darwin.apple_sdk.frameworks) AppKit Security Foundation Cocoa; + }; + idrisPackages = dontRecurseIntoAttrs (callPackage ../development/idris-modules { idris-no-deps = haskellPackages.idris; });