Unverified Commit 788cf70b authored by Silvan Mosberger's avatar Silvan Mosberger Committed by GitHub
Browse files

Merge pull request #279324 from katexochen/revert-276887-gocode/remove

Revert "gocode: remove"
parents 0540bc4f 6ad7e6fb
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "gocode-unstable";
  version = "2020-04-06";
  rev = "4acdcbdea79de6b3dee1c637eca5cbea0fdbe37c";

  goPackagePath = "github.com/mdempsky/gocode";

  # we must allow references to the original `go` package,
  # because `gocode` needs to dig into $GOROOT to provide completions for the
  # standard packages.
  allowGoReference = true;

  src = fetchFromGitHub {
    inherit rev;

    owner = "mdempsky";
    repo = "gocode";
    sha256 = "0i1hc089gb6a4mcgg56vn5l0q96wrlza2n08l4349s3dc2j559fb";
  };

  goDeps = ./deps.nix;

  meta = with lib; {
    description = "An autocompletion daemon for the Go programming language";
    longDescription = ''
      Gocode is a helper tool which is intended to be integrated with your
      source code editor, like vim, neovim and emacs. It provides several
      advanced capabilities, which currently includes:

        - Context-sensitive autocompletion

      It is called daemon, because it uses client/server architecture for
      caching purposes. In particular, it makes autocompletions very fast.
      Typical autocompletion time with warm cache is 30ms, which is barely
      noticeable.
    '';
    homepage = "https://github.com/mdempsky/gocode";
    license = licenses.mit;
    maintainers = with maintainers; [ kalbasit ];
  };
}
+12 −0
Original line number Diff line number Diff line
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
  {
    goPackagePath = "golang.org/x/tools";
    fetch = {
      type = "git";
      url = "https://go.googlesource.com/tools";
      rev = "72e4a01eba4315301fd9ce00c8c2f492580ded8a";
      sha256 = "0a8c7j4w784w441j3j3bh640vy1g6g214641qv485wyi0xj49anf";
    };
  }
]
+26 −36
Original line number Diff line number Diff line
@@ -41,8 +41,7 @@ let
    else alias;

  mapAliases = aliases:
    lib.mapAttrs
      (n: alias:
    lib.mapAttrs (n: alias:
      removeDistribute
        (removeRecurseForDerivations
          (checkInPkgs n alias)))
@@ -101,8 +100,7 @@ mapAliases ({
  bitwig-studio2 = throw "bitwig-studio2 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03
  blender-with-packages = args:
    lib.warn "blender-with-packages is deprecated in favor of blender.withPackages, e.g. `blender.withPackages(ps: [ ps.foobar ])`"
      (blender.withPackages (_: args.packages)).overrideAttrs
      (lib.optionalAttrs (args ? name) { pname = "blender-" + args.name; }); # Added 2023-10-30
    (blender.withPackages (_: args.packages)).overrideAttrs (lib.optionalAttrs (args ? name) { pname = "blender-" + args.name; }); # Added 2023-10-30
  bluezFull = throw "'bluezFull' has been renamed to/replaced by 'bluez'"; # Converted to throw 2023-09-10
  bookletimposer = throw "bookletimposer has been removed from nixpkgs; upstream unmaintained and broke with pypdf3"; # Added 2024-01-01
  boost168 = throw "boost168 has been deprecated in favor of the latest version"; # Added 2023-06-08
@@ -333,14 +331,8 @@ mapAliases ({

  gnuradio-with-packages = gnuradio3_7.override {
    extraPackages = lib.attrVals [
      "osmosdr"
      "ais"
      "gsm"
      "nacl"
      "rds"
      "limesdr"
    ]
      gnuradio3_7Packages;
      "osmosdr" "ais" "gsm" "nacl" "rds" "limesdr"
    ] gnuradio3_7Packages;
  }; # Added 2020-10-16

  gmock = gtest; # moved from top-level 2021-03-14
@@ -366,7 +358,6 @@ mapAliases ({
  google-chrome-dev = throw "'google-chrome-dev' has been removed due to the lack of maintenance in nixpkgs. Consider using 'google-chrome' instead."; # Added 2023-10-18
  google-gflags = throw "'google-gflags' has been renamed to/replaced by 'gflags'"; # Converted to throw 2023-09-10
  go-thumbnailer = thud; # Added 2023-09-21
  gocode = throw "'gocode' has been removed as the upstream project was archived. 'gopls' is suggested as replacement"; # Added 2023-12-26
  govendor = throw "'govendor' has been removed as it is no longer maintained upstream, please use Go modules instead"; # Added 2023-12-26
  gometer = throw "gometer has been removed from nixpkgs because goLance stopped offering Linux support"; # Added 2023-02-10

@@ -691,8 +682,7 @@ mapAliases ({
  neochat = libsForQt5.kdeGear.neochat; # added 2022-05-10
  nitrokey-udev-rules = libnitrokey; # Added 2023-03-25
  nix-direnv-flakes = nix-direnv;
  nix-repl = throw (
    # Added 2018-08-26
  nix-repl = throw ( # Added 2018-08-26
    "nix-repl has been removed because it's not maintained anymore, " +
    "use `nix repl` instead. Also see https://github.com/NixOS/nixpkgs/pull/44903"
  );
+2 −0
Original line number Diff line number Diff line
@@ -28374,6 +28374,8 @@ with pkgs;
  go-outline = callPackage ../development/tools/go-outline { };
  gocode = callPackage ../development/tools/gocode { };
  gocode-gomod = callPackage ../development/tools/gocode-gomod { };
  goconst = callPackage ../development/tools/goconst { };