nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 46 lines 930 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, openssl 6, pkg-config 7, AppKit 8, Cocoa 9, Foundation 10, Security 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "iay"; 15 version = "0.4.2"; 16 17 src = fetchFromGitHub { 18 owner = "aaqaishtyaq"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-vk+1RbAmzRf2bbvbSpO+upVW4VrtYWM+5iiH73N+dsc="; 22 }; 23 24 cargoHash = "sha256-+PpmxVPyRx/xF7jQGy/07xqALmdNp2uL3HZVOeRicqY="; 25 26 nativeBuildInputs = [ pkg-config ]; 27 28 buildInputs = [ 29 openssl 30 ] 31 ++ lib.optionals stdenv.isDarwin [ 32 AppKit 33 Cocoa 34 Foundation 35 Security 36 ]; 37 38 NIX_LDFLAGS = lib.optionals stdenv.isDarwin [ "-framework" "AppKit" ]; 39 40 meta = with lib; { 41 description = "Minimalistic, blazing-fast, and extendable prompt for bash and zsh"; 42 homepage = "https://github.com/aaqaishtyaq/iay"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ aaqaishtyaq omasanori ]; 45 }; 46}