nixpkgs/pkgs/applications/networking/irc/tiny/default.nix

37 lines
945 B
Nix
Raw Normal View History

2020-01-03 10:18:45 +00:00
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, dbus
, openssl
2020-07-05 10:54:21 +00:00
, Foundation
2020-01-03 10:18:45 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "tiny";
version = "0.10.0";
2020-01-03 10:18:45 +00:00
src = fetchFromGitHub {
owner = "osa1";
repo = pname;
rev = "v${version}";
sha256 = "177d1x4z0mh0p7c5ldq70cn1j3pac50d8cil2ni50hl49c3x6yy1";
2020-01-03 10:18:45 +00:00
};
cargoSha256 = "05q3f1wp48mwkz8n0102rwb6jzrgpx3dlbxzf3zcw8r1mblgzim1";
2020-01-03 10:18:45 +00:00
cargoBuildFlags = lib.optionals stdenv.isLinux [ "--features=desktop-notifications" ];
2020-01-03 10:18:45 +00:00
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
2020-07-05 10:54:21 +00:00
buildInputs = lib.optionals stdenv.isLinux [ dbus openssl ] ++ lib.optional stdenv.isDarwin Foundation;
2020-01-03 10:18:45 +00:00
meta = with lib; {
description = "A console IRC client";
homepage = "https://github.com/osa1/tiny";
changelog = "https://github.com/osa1/tiny/raw/v${version}/CHANGELOG.md";
2020-01-03 10:18:45 +00:00
license = licenses.mit;
2021-08-08 16:04:59 +00:00
maintainers = with maintainers; [ Br1ght0ne vyp ];
2020-01-03 10:18:45 +00:00
};
}