Loading pkgs/by-name/wt/wtwitch/package.nix +26 −13 Original line number Diff line number Diff line Loading @@ -13,19 +13,23 @@ mpv, procps, scdoc, stdenv, stdenvNoCC, streamlink, vlc, fzf, withMpv ? true, withVlc ? false, withMplayer ? false, }: stdenv.mkDerivation rec { stdenvNoCC.mkDerivation (finalAttrs: { pname = "wtwitch"; version = "2.6.3"; src = fetchFromGitHub { owner = "krathalan"; repo = pname; rev = version; repo = "wtwitch"; tag = finalAttrs.version; hash = "sha256-2YLBuxGwGkav3zB2qMqM6yRXf7ZLqgULoJV4s5p+hSw="; }; Loading @@ -35,7 +39,11 @@ stdenv.mkDerivation rec { ''; buildPhase = '' runHook preBuild scdoc < src/wtwitch.1.scd > wtwitch.1 runHook postBuild ''; nativeBuildInputs = [ Loading @@ -45,6 +53,8 @@ stdenv.mkDerivation rec { ]; installPhase = '' runHook preInstall installManPage wtwitch.1 installShellCompletion --cmd wtwitch \ --bash src/wtwitch-completion.bash \ Loading @@ -54,29 +64,32 @@ stdenv.mkDerivation rec { --set-default LANG en_US.UTF-8 \ --prefix PATH : ${ lib.makeBinPath ( lib.optionals stdenv.hostPlatform.isLinux [ vlc ] ++ [ [ bash coreutils-prefixed curl gnused gnugrep jq mplayer mpv procps streamlink fzf ] ++ lib.optional withMpv mpv ++ lib.optional withVlc vlc ++ lib.optional withMplayer mplayer ) } runHook postInstall ''; meta = with lib; { meta = { description = "Terminal user interface for Twitch"; homepage = "https://github.com/krathalan/wtwitch"; license = licenses.gpl3Only; maintainers = with maintainers; [ urandom ]; platforms = platforms.all; license = lib.licenses.gpl3Only; maintainers = [ lib.maintainers.urandom ]; platforms = lib.platforms.all; mainProgram = "wtwitch"; }; } }) Loading
pkgs/by-name/wt/wtwitch/package.nix +26 −13 Original line number Diff line number Diff line Loading @@ -13,19 +13,23 @@ mpv, procps, scdoc, stdenv, stdenvNoCC, streamlink, vlc, fzf, withMpv ? true, withVlc ? false, withMplayer ? false, }: stdenv.mkDerivation rec { stdenvNoCC.mkDerivation (finalAttrs: { pname = "wtwitch"; version = "2.6.3"; src = fetchFromGitHub { owner = "krathalan"; repo = pname; rev = version; repo = "wtwitch"; tag = finalAttrs.version; hash = "sha256-2YLBuxGwGkav3zB2qMqM6yRXf7ZLqgULoJV4s5p+hSw="; }; Loading @@ -35,7 +39,11 @@ stdenv.mkDerivation rec { ''; buildPhase = '' runHook preBuild scdoc < src/wtwitch.1.scd > wtwitch.1 runHook postBuild ''; nativeBuildInputs = [ Loading @@ -45,6 +53,8 @@ stdenv.mkDerivation rec { ]; installPhase = '' runHook preInstall installManPage wtwitch.1 installShellCompletion --cmd wtwitch \ --bash src/wtwitch-completion.bash \ Loading @@ -54,29 +64,32 @@ stdenv.mkDerivation rec { --set-default LANG en_US.UTF-8 \ --prefix PATH : ${ lib.makeBinPath ( lib.optionals stdenv.hostPlatform.isLinux [ vlc ] ++ [ [ bash coreutils-prefixed curl gnused gnugrep jq mplayer mpv procps streamlink fzf ] ++ lib.optional withMpv mpv ++ lib.optional withVlc vlc ++ lib.optional withMplayer mplayer ) } runHook postInstall ''; meta = with lib; { meta = { description = "Terminal user interface for Twitch"; homepage = "https://github.com/krathalan/wtwitch"; license = licenses.gpl3Only; maintainers = with maintainers; [ urandom ]; platforms = platforms.all; license = lib.licenses.gpl3Only; maintainers = [ lib.maintainers.urandom ]; platforms = lib.platforms.all; mainProgram = "wtwitch"; }; } })