From c89a39f876a99046d11219df85d66ebafdcab72b Mon Sep 17 00:00:00 2001 From: Masanori Ogino <167209+omasanori@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:24:45 +0900 Subject: [PATCH] iay: init at 0.4.0 iay is a tool to configure a shell prompt. It supports bash and zsh. Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com> --- pkgs/tools/misc/iay/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 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 000000000000000..37b56081a3c687c --- /dev/null +++ b/pkgs/tools/misc/iay/default.nix @@ -0,0 +1,29 @@ +{ lib +, rustPlatform +, fetchCrate +, stdenv +}: + +rustPlatform.buildRustPackage rec { + pname = "iay"; + version = "0.4.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-xp+9WmzvuYf7vfNGTc/ZQ/fF8UsprS3S1SBHPYX/5fg="; + }; + + cargoSha256 = "sha256-SMqiwM6LrXXjV4Mb2BY9WbeKKPkxiYxPyZ4aepVIAqU="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "Minimalistic shell prompt"; + homepage = "https://github.com/aaqaishtyaq/iay"; + license = licenses.mit; + maintainers = with maintainers; [ omasanori ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 708d1aaf2dd88f5..7bd39ec71fd6c14 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1397,6 +1397,8 @@ with pkgs; httm = callPackage ../tools/filesystems/httm { }; + iay = callPackage ../tools/misc/iay { }; + kanata = callPackage ../tools/system/kanata { }; kanata-with-cmd = kanata.override { withCmd = true; };