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

37 lines
810 B
Nix
Raw Normal View History

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