at 22.05-pre 36 lines 927 B view raw
1{ stdenv 2, lib 3, rustPlatform 4, fetchFromGitHub 5, pkg-config 6, dbus 7, openssl 8, Foundation 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "tiny"; 13 version = "0.10.0"; 14 15 src = fetchFromGitHub { 16 owner = "osa1"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "177d1x4z0mh0p7c5ldq70cn1j3pac50d8cil2ni50hl49c3x6yy1"; 20 }; 21 22 cargoSha256 = "05q3f1wp48mwkz8n0102rwb6jzrgpx3dlbxzf3zcw8r1mblgzim1"; 23 24 nativeBuildInputs = lib.optional stdenv.isLinux pkg-config; 25 buildInputs = lib.optionals stdenv.isLinux [ dbus openssl ] ++ lib.optional stdenv.isDarwin Foundation; 26 27 buildFeatures = lib.optional stdenv.isLinux "desktop-notifications"; 28 29 meta = with lib; { 30 description = "A console IRC client"; 31 homepage = "https://github.com/osa1/tiny"; 32 changelog = "https://github.com/osa1/tiny/raw/v${version}/CHANGELOG.md"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ Br1ght0ne vyp ]; 35 }; 36}