nixpkgs/pkgs/applications/networking/irc/tiny/default.nix
Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00

45 lines
1.2 KiB
Nix

{
stdenv,
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbusSupport ? stdenv.hostPlatform.isLinux,
dbus,
# rustls will be used for TLS if useOpenSSL=false
useOpenSSL ? stdenv.hostPlatform.isLinux,
openssl,
notificationSupport ? stdenv.hostPlatform.isLinux,
}:
rustPlatform.buildRustPackage rec {
pname = "tiny";
version = "0.13.0";
src = fetchFromGitHub {
owner = "osa1";
repo = "tiny";
rev = "v${version}";
hash = "sha256-phjEae2SS3zkSpuhhE4iscUM8ij8DT47YLIMATMG/+Q=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-lyjTl0kbtfQdqSqxti1181+oDVYP4U++v2JEOYvI7aM=";
nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux pkg-config;
buildInputs = lib.optionals dbusSupport [ dbus ] ++ lib.optionals useOpenSSL [ openssl ];
buildFeatures = lib.optional notificationSupport "desktop-notifications";
meta = with lib; {
description = "Console IRC client";
homepage = "https://github.com/osa1/tiny";
changelog = "https://github.com/osa1/tiny/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [
Br1ght0ne
vyp
];
mainProgram = "tiny";
};
}