anchor.diff:    preInstall = ''
       mkdir -p "$out/lib/udev/rules.d"
     '';
  +
     installTargets = [ "install" "udev-install" ];
   
     # remove binaries for x-less install because xgps sconsflag is partially broken
  
positive.code:     ./sconstruct-env-fixes.patch
    ];
  
    # - leapfetch=no disables going online at build time to fetch leap-seconds
    #   info. See <gpsd-src>/build.txt for more info.
    preBuild = ''
      patchShebangs .
      sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConscript
  
negative.code:     '';
      homepage = "https://gpsd.gitlab.io/gpsd/index.html";
      changelog = "https://gitlab.com/gpsd/gpsd/-/blob/release-${version}/NEWS";
      license = licenses.bsd2;
      platforms = platforms.linux;
      maintainers = with maintainers; [ bjornfor rasendubi ];
    };
  