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

37 lines
810 B
Nix
Raw Normal View History

2020-01-03 11:18:45 +01:00
{ stdenv
, lib
, rustPlatform
, fetchpatch
, fetchFromGitHub
, pkg-config
, dbus
, openssl
2020-07-05 12:54:21 +02:00
, Foundation
2020-01-03 11:18:45 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "tiny";
version = "0.5.1";
src = fetchFromGitHub {
owner = "osa1";
repo = pname;
rev = "v${version}";
sha256 = "1m57xsrc7lzkrm8k1wh3yx3in5bhd0qjzygxdwr8lvigpsiy5caa";
};
cargoSha256 = "1s93zxk85wa7zw8745ba1sgipal75w1y18nc9vca6sig4pzvvj41";
2020-01-03 11:18:45 +01:00
RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
2020-07-05 12:54:21 +02:00
buildInputs = lib.optionals stdenv.isLinux [ dbus openssl ] ++ lib.optional stdenv.isDarwin Foundation;
2020-01-03 11:18:45 +01:00
meta = with lib; {
description = "A console IRC client";
homepage = "https://github.com/osa1/tiny";
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
}