youtube-tui: dynamically link libsixel on darwin

+9 -1
+9 -1
pkgs/applications/video/youtube-tui/default.nix
··· 6 6 , xorg 7 7 , stdenv 8 8 , python3 9 + , makeBinaryWrapper 9 10 , libsixel 10 11 , mpv 11 12 , CoreFoundation ··· 19 20 20 21 src = fetchFromGitHub { 21 22 owner = "Siriusmart"; 22 - repo = pname; 23 + repo = "youtube-tui"; 23 24 rev = "v${version}"; 24 25 hash = "sha256-FOiK3yQcQuwdCEjBtRPW4iBd+8uNsvZ6l5tclHVzL+M="; 25 26 }; ··· 34 35 nativeBuildInputs = [ 35 36 pkg-config 36 37 python3 38 + makeBinaryWrapper 37 39 ]; 38 40 39 41 buildInputs = [ ··· 46 48 Security 47 49 AppKit 48 50 ]; 51 + 52 + # sixel-sys is dynamically linked to libsixel 53 + postInstall = lib.optionalString stdenv.isDarwin '' 54 + wrapProgram $out/bin/youtube-tui \ 55 + --prefix DYLD_LIBRARY_PATH : "${lib.makeLibraryPath [libsixel]}" 56 + ''; 49 57 50 58 meta = with lib; { 51 59 description = "An aesthetically pleasing YouTube TUI written in Rust";