20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
28 hash = "sha256-2YLBuxGwGkav3zB2qMqM6yRXf7ZLqgULoJV4s5p+hSw=";
31 # hardcode SCRIPT_NAME because #150841
33 substituteInPlace src/wtwitch --replace 'readonly SCRIPT_NAME="''${0##*/}"' 'readonly SCRIPT_NAME="wtwitch"'
37 scdoc < src/wtwitch.1.scd > wtwitch.1
40 nativeBuildInputs = [ scdoc installShellFiles makeWrapper ];
43 installManPage wtwitch.1
44 installShellCompletion --cmd wtwitch \
45 --bash src/wtwitch-completion.bash \
47 install -Dm755 src/wtwitch $out/bin/wtwitch
48 wrapProgram $out/bin/wtwitch \
49 --set-default LANG en_US.UTF-8 \
50 --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.hostPlatform.isLinux [ vlc ] ++ [
65 description = "Terminal user interface for Twitch";
66 homepage = "https://github.com/krathalan/wtwitch";
67 license = licenses.gpl3Only;
68 maintainers = with maintainers; [ urandom ];
69 platforms = platforms.all;
70 mainProgram = "wtwitch";