9 stdenvNoCC.mkDerivation rec {
10 pname = "vr-reversal";
13 src = fetchFromGitHub {
17 sha256 = "1wn2ngcvn7wcsl3kmj782x5q9130qw951lj6ilrkafp6q6zscpqr";
19 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
23 # reset_rot is only available in ffmpeg 5.0, see 5bcc61ce87922ecccaaa0bd303a7e195929859a8
24 postPatch = lib.optionalString (lib.versionOlder ffmpeg.version "5.0") ''
25 substituteInPlace 360plugin.lua --replace-fail ":reset_rot=1:" ":"
29 mkdir -p $out/share/mpv/scripts
30 cp -r 360plugin.lua $out/share/mpv/scripts/
33 passthru.scriptName = "360plugin.lua";
36 description = "Script for mpv to play VR video with optional saving of head tracking data";
37 homepage = "https://github.com/dfaker/VR-reversal";
38 license = licenses.unlicense;
39 platforms = platforms.all;
40 maintainers = with maintainers; [ schnusch ];