anchor.diff:  { lib, stdenv
   , fetchFromGitHub
  -, fetchpatch
   , zlib
   , expat
   , cmake
  
positive.code:     owner = "exiv2";
      repo  = "exiv2";
      rev = "v${version}";
      sha256 = "0d294yhcdw8ziybyd4rp5hzwknzik2sm0cz60ff7fljacv75bjpy";
    };
  
    patches = [
      # Fix aarch64 build https://github.com/Exiv2/exiv2/pull/1271
      (fetchpatch {
        name = "cmake-fix-aarch64.patch";
        url = "https://github.com/Exiv2/exiv2/commit/bbe0b70840cf28b7dd8c0b7e9bb1b741aeda2efd.patch";
        sha256 = "13zw1mn0ag0jrz73hqjhdsh1img7jvj5yddip2k2sb5phy04rzfx";
      })
  
      # Use correct paths with multiple outputs
      # https://github.com/Exiv2/exiv2/pull/1275
      (fetchpatch {
        url = "https://github.com/Exiv2/exiv2/commit/48f2c9dbbacc0ef84c8ebf4cb1a603327f0b8750.patch";
        sha256 = "vjB3+Ld4c/2LT7nq6uatYwfHTh+HeU5QFPFXuNLpIPA=";
      })
      # https://github.com/Exiv2/exiv2/pull/1294
      (fetchpatch {
        url = "https://github.com/Exiv2/exiv2/commit/306c8a6fd4ddd70e76043ab255734720829a57e8.patch";
        sha256 = "0D/omxYxBPGUu3uSErlf48dc6Ukwc2cEN9/J3e7a9eU=";
      })
    ];
  
    nativeBuildInputs = [
      cmake
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "exiv2";
    version = "0.27.4";
  
    outputs = [ "out" "dev" "doc" "man" ];
  
  