Files
nixpkgs/pkgs/by-name/yo/youtube-tui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
xorg,
stdenv,
python3,
makeBinaryWrapper,
libsixel,
mpv,
}:
rustPlatform.buildRustPackage rec {
pname = "youtube-tui";
version = "0.9.2";
src = fetchFromGitHub {
owner = "Siriusmart";
repo = "youtube-tui";
tag = "v${version}";
hash = "sha256-TuXfgJTY+f+9GH6gsATsnV8WMAfqHUAglbbCvOgJ1NQ=";
};
cargoHash = "sha256-lJDIkOokhKo6BxrZAD4s2FtLXNhU2IysltjhiHQQUlU=";
nativeBuildInputs = [
pkg-config
python3
makeBinaryWrapper
];
buildInputs = [
openssl
xorg.libxcb
libsixel
mpv
];
# sixel-sys is dynamically linked to libsixel
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
wrapProgram $out/bin/youtube-tui \
--prefix DYLD_LIBRARY_PATH : "${lib.makeLibraryPath [ libsixel ]}"
'';
meta = with lib; {
description = "Aesthetically pleasing YouTube TUI written in Rust";
homepage = "https://siriusmart.github.io/youtube-tui";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Ruixi-rebirth ];
mainProgram = "youtube-tui";
};
}