youtube-tui: dynamically link libsixel on darwin

+9 -1
+9 -1
pkgs/applications/video/youtube-tui/default.nix
··· 6 , xorg 7 , stdenv 8 , python3 9 , libsixel 10 , mpv 11 , CoreFoundation ··· 19 20 src = fetchFromGitHub { 21 owner = "Siriusmart"; 22 - repo = pname; 23 rev = "v${version}"; 24 hash = "sha256-FOiK3yQcQuwdCEjBtRPW4iBd+8uNsvZ6l5tclHVzL+M="; 25 }; ··· 34 nativeBuildInputs = [ 35 pkg-config 36 python3 37 ]; 38 39 buildInputs = [ ··· 46 Security 47 AppKit 48 ]; 49 50 meta = with lib; { 51 description = "An aesthetically pleasing YouTube TUI written in Rust";
··· 6 , xorg 7 , stdenv 8 , python3 9 + , makeBinaryWrapper 10 , libsixel 11 , mpv 12 , CoreFoundation ··· 20 21 src = fetchFromGitHub { 22 owner = "Siriusmart"; 23 + repo = "youtube-tui"; 24 rev = "v${version}"; 25 hash = "sha256-FOiK3yQcQuwdCEjBtRPW4iBd+8uNsvZ6l5tclHVzL+M="; 26 }; ··· 35 nativeBuildInputs = [ 36 pkg-config 37 python3 38 + makeBinaryWrapper 39 ]; 40 41 buildInputs = [ ··· 48 Security 49 AppKit 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 + ''; 57 58 meta = with lib; { 59 description = "An aesthetically pleasing YouTube TUI written in Rust";