Unverified Commit a3394a07 authored by isabel's avatar isabel Committed by GitHub
Browse files

twitch-tui: adopt, move to by-name, modernize (#402310)

parents ba50a14d 8db91291
Loading
Loading
Loading
Loading
+11 −21
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  rustPlatform,
  pkg-config,
  openssl,
  CoreServices,
  Security,
  SystemConfiguration,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "twitch-tui";
  version = "2.6.19";

  src = fetchFromGitHub {
    owner = "Xithrius";
    repo = pname;
    tag = "v${version}";
    repo = "twitch-tui";
    tag = "v${finalAttrs.version}";
    hash = "sha256-hA66YcxbQem9ymOu3tGA4biKUCoJ2jKnUSK+9+0P2Eg=";
  };

@@ -28,22 +24,16 @@ rustPlatform.buildRustPackage rec {
    pkg-config
  ];

  buildInputs =
    [
  buildInputs = [
    openssl
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      CoreServices
      Security
      SystemConfiguration
  ];

  meta = with lib; {
  meta = {
    description = "Twitch chat in the terminal";
    homepage = "https://github.com/Xithrius/twitch-tui";
    changelog = "https://github.com/Xithrius/twitch-tui/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = [ maintainers.taha ];
    changelog = "https://github.com/Xithrius/twitch-tui/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.lordmzte ];
    mainProgram = "twt";
  };
}
})
+0 −4
Original line number Diff line number Diff line
@@ -2911,10 +2911,6 @@ with pkgs;
  persistent-evdev = python3Packages.callPackage ../servers/persistent-evdev { };
  twitch-tui = callPackage ../applications/networking/instant-messengers/twitch-tui {
    inherit (darwin.apple_sdk_11_0.frameworks) Security CoreServices SystemConfiguration;
  };
  inherit (import ../development/libraries/libsbsms pkgs)
    libsbsms
    libsbsms_2_0_2