anchor.diff:  
     prePatch = ''
       substituteInPlace src/main.cpp \
  -      --replace GIT_COMMIT_HASH '"${src.rev}"'
  +      --replace GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
     '';
   
     preConfigure = ''
  
positive.code: , stdenv
  , fetchFromGitHub
  , cmake
  , pkg-config
  , libjpeg
  , mesa
  , pango
  , wayland
  , wayland-protocols
  , wayland-scanner
  }:
  
  stdenv.mkDerivation rec {
    pname = "hyprpaper";
    version = "unstable-2022-07-24";
  
    src = fetchFromGitHub {
      owner = "hyprwm";
      repo = pname;
      rev = "f75fcf01d1f652d55f79032a40d821d2ff78520e";
      sha256 = "sha256-M2g4NeDoYt32j02cimCR4vWzAzauIzQVQaWgBWXDAtk=";
    };
  
    nativeBuildInputs = [
  
negative.code:   '';
  
    installPhase = ''
      runHook preInstall
  
      install -Dm755 ./hyprpaper -t $out/bin
  
      runHook postInstall
    '';
  
    meta = with lib; {
      inherit (finalAttrs.src.meta) homepage;
      description = "A blazing fast wayland wallpaper utility";
      license = licenses.bsd3;
      maintainers = with maintainers; [ wozeparrot ];
      inherit (wayland.meta) platforms;
    };
  })
  