mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
4d5a99b3df
Diff: https://github.com/osa1/tiny/compare/v0.11.0...v0.12.0 Changelog: https://github.com/osa1/tiny/blob/v0.12.0/CHANGELOG.md
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, Foundation
|
|
, dbusSupport ? stdenv.isLinux, dbus
|
|
# rustls will be used for TLS if useOpenSSL=false
|
|
, useOpenSSL ? stdenv.isLinux, openssl
|
|
, notificationSupport ? stdenv.isLinux
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tiny";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osa1";
|
|
repo = "tiny";
|
|
rev = "v${version}";
|
|
hash = "sha256-VlKhOHNggT+FbMvE/N2JQOJf0uB1N69HHdP09u89qSk=";
|
|
};
|
|
|
|
cargoHash = "sha256-AhQCfLCoJU7o8s+XL3hDOPmZi9QjOxXSA9uglA1KSuY=";
|
|
|
|
# Cargo.lock is outdated
|
|
preConfigure = ''
|
|
cargo metadata --offline
|
|
'';
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
|
|
buildInputs = lib.optionals dbusSupport [ dbus ]
|
|
++ lib.optionals useOpenSSL [ openssl ]
|
|
++ lib.optional stdenv.isDarwin Foundation;
|
|
|
|
buildFeatures = lib.optional notificationSupport "desktop-notifications";
|
|
|
|
meta = with lib; {
|
|
description = "A 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";
|
|
};
|
|
}
|