anchor.diff:      cp README.md "$out/share/doc/nbd-${version}/"
     '';
   
  -  doCheck = true;
  +  doCheck = !stdenv.isDarwin;
   
     passthru.tests = {
       test = nixosTests.nbd;
  
positive.code:     sha256 = "sha256-aHcVbSOnsz917uidL1wskcVCr8PNy2Nt6lqIU5pY0Qw=";
    };
  
    buildInputs = [ glib linuxHeaders gnutls ];
  
    nativeBuildInputs = [ pkg-config which bison ];
  
  
negative.code:   NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lrt -lpthread";
  
    meta = {
      homepage = "https://nbd.sourceforge.io/";
      description = "Map arbitrary files as block devices over the network";
      license = lib.licenses.gpl2;
      platforms = lib.platforms.unix;
    };
  }
  