anchor.diff:      cmake
       pkgconfig
       qttools
  +    deepin.setupHook
     ];
   
     buildInputs = [
  
positive.code:     xorg.xcbproto
    ];
  
    NIX_LDFLAGS = "-ldvdnav";
  
    postPatch = ''
      sed -i src/CMakeLists.txt -e "s,/usr/lib/dtk2,${dtkcore}/lib/dtk2,"
      sed -i src/libdmr/libdmr.pc.in -e "s,/usr,$out," -e 's,libdir=''${prefix}/,libdir=,'
    '';
  
    passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
  
negative.code: { stdenv, mkDerivation, fetchFromGitHub, fetchpatch, cmake, pkgconfig, qttools, qtx11extras,
    dtkcore, dtkwidget, ffmpeg, ffmpegthumbnailer, mpv, pulseaudio,
    libdvdnav, libdvdread, xorg, deepin }:
  
  mkDerivation rec {
    pname = "deepin-movie-reborn";
    version = "5.0.0";
  
    src = fetchFromGitHub {
      owner = "linuxdeepin";
      repo = pname;
      rev = version;
      sha256 = "0cly8q0514a58s3h3wsvx9yxar7flz6i2q8xkrkfjias22b3z7b0";
    };
  
    outputs = [ "out" "dev" ];
  