anchor.diff:    nativeBuildInputs = with pkgs; [ rustPackages.rustfmt ];
     buildInputs =
       stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
  +
  +  # copy the docs to the $man and $doc outputs
  +  postInstall = ''
  +    install -Dm644 lorri.1 $man/share/man/man1/lorri.1
  +    install -Dm644 -t $doc/share/doc/lorri/ \
  +      README.md \
  +      CONTRIBUTING.md \
  +      LICENSE \
  +      MAINTAINERS.md
  +    cp -r contrib/ $doc/share/doc/lorri/contrib
  +  '';
   
     passthru = {
       updater = writers.writeBash "copy-runtime-nix.sh" ''
  
positive.code:     repo = pname;
      # Run `eval $(nix-build -A lorri.updater)` after updating the revision!
      # ALSO don’t forget to update the cargoSha256!
      rev = "93d93013217cd9aa09d2bd316d6c3abf827a6601";
      sha256 = "0wbkx8hmikngfp6fp0y65yla22f3k0jszq8a6pas80q0b33llwm5";
    };
  
    cargoSha256 = "1a3n1ylyp63x6v7b07nnqpfxjzmsgwmgraza23lx8z4gh167gv46";
    doCheck = false;
  
    BUILD_REV_COUNT = src.revCount or 1;
  
negative.code:       nixos = nixosTests.lorri;
      };
    };
  }).overrideAttrs (old: {
    # add man and doc outputs to put our documentation into
    outputs = old.outputs or [ "out" ] ++ [ "man" "doc" ];
  })
  