28 stdenvNoCC.mkDerivation rec {
29 pname = "multiviewer-for-f1";
33 url = "https://releases.multiviewer.dev/download/${id}/multiviewer-for-f1_${version}_amd64.deb";
34 sha256 = "sha256-V1+kMgfbgDS47YNIotmzrh2Hry5pvdQvrzWwuKJY1oM=";
74 # The deb file contains a setuid binary, so 'dpkg -x' doesn't work here
75 dpkg --fsys-tarfile $src | tar --extract
83 mkdir -p $out/bin $out/share
84 mv -t $out/share usr/share/* usr/lib/multiviewer-for-f1
86 makeWrapper "$out/share/multiviewer-for-f1/MultiViewer for F1" $out/bin/multiviewer-for-f1 \
87 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" \
88 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libudev0-shim ]}:\"$out/share/Multiviewer for F1\""
94 description = "Unofficial desktop client for F1 TVĀ®";
95 homepage = "https://multiviewer.app";
96 downloadPage = "https://multiviewer.app/download";
97 license = licenses.unfree;
98 maintainers = with maintainers; [ babeuh ];
99 platforms = [ "x86_64-linux" ];
100 mainProgram = "multiviewer-for-f1";