anchor.diff:      install -D contrib/nix-prefetch-completion.bash $out/share/bash-completion/completions/nix-prefetch
       install -D contrib/nix-prefetch-completion.zsh $out/share/zsh/site-functions/_nix_prefetch
   
  -    mkdir $out/contrib
  -    cp -r contrib/hello_rs $out/contrib/
  +    mkdir -p $out/share/doc/${pname}/contrib
  +    cp -r contrib/hello_rs $out/share/doc/${pname}/contrib/
     '';
   
  -  meta = {
  +  meta = with stdenv.lib; {
       description = "Prefetch any fetcher function call, e.g. package sources";
  -    homepage = https://github.com/msteen/nix-prefetch;
  +    homepage = "https://github.com/msteen/nix-prefetch";
       license = licenses.mit;
       maintainers = with maintainers; [ msteen ];
       platforms = platforms.all;
  
positive.code: 
      mkdir -p $out/bin
      makeWrapper $lib/main.sh $out/bin/${pname} \
        --prefix PATH : '${makeBinPath [ coreutils gawk gnugrep gnused jq nix ]}'
  
      substitute src/tests.sh $lib/tests.sh \
        --subst-var-by bin $out/bin
  
negative.code: , asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, libxslt
  , coreutils, gawk, gnugrep, gnused, jq, nix }:
  
  stdenv.mkDerivation rec {
    pname = "nix-prefetch";
    version = "0.3.0";
  
    src = fetchFromGitHub {
      owner = "msteen";
      repo = "nix-prefetch";
      rev = version;
      sha256 = "0b9gdi7xzmfq0j258x724xsll8gi31m0m4pzfjkqinlm6zwr3sgm";
    };
  
    nativeBuildInputs = [
  