From 23da622f4c21374896d438bf2e815c0e6a9d6ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 20 Oct 2021 16:57:59 +0200 Subject: [PATCH] go-outline: unstable-2018-11-22 -> unstable-2021-06-08, switch to buildGoModule, add SuperSandro2000 as maintainer --- pkgs/development/tools/go-outline/default.nix | 22 +++++++++---------- pkgs/development/tools/go-outline/deps.nix | 11 ---------- 2 files changed, 10 insertions(+), 23 deletions(-) delete mode 100644 pkgs/development/tools/go-outline/deps.nix diff --git a/pkgs/development/tools/go-outline/default.nix b/pkgs/development/tools/go-outline/default.nix index fe4c2e8d4dfd..5ec826eecc78 100644 --- a/pkgs/development/tools/go-outline/default.nix +++ b/pkgs/development/tools/go-outline/default.nix @@ -1,24 +1,22 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "go-outline"; - version = "unstable-2018-11-22"; - rev = "7182a932836a71948db4a81991a494751eccfe77"; - - goPackagePath = "github.com/ramya-rao-a/go-outline"; - goDeps = ./deps.nix; + version = "unstable-2021-06-08"; src = fetchFromGitHub { - inherit rev; owner = "ramya-rao-a"; repo = "go-outline"; - sha256 = "0p381yvwvff0i4i7mf5v1k2q1lb0rs2xkjgv67n1cw2573c613r1"; + rev = "9736a4bde949f321d201e5eaa5ae2bcde011bf00"; + sha256 = "sha256-5ns6n1UO9kRSw8iio4dmJDncsyvFeN01bjxHxQ9Fae4="; }; - meta = { + vendorSha256 = "sha256-jYYtSXdJd2eUc80UfwRRMPcX6tFiXE3LbxV3NAdKVKE="; + + meta = with lib; { description = "Utility to extract JSON representation of declarations from a Go source file"; homepage = "https://github.com/ramya-rao-a/go-outline"; - maintainers = with lib.maintainers; [ vdemeester ]; - license = lib.licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 vdemeester ]; + license = licenses.mit; }; } diff --git a/pkgs/development/tools/go-outline/deps.nix b/pkgs/development/tools/go-outline/deps.nix deleted file mode 100644 index 6a333b58bec6..000000000000 --- a/pkgs/development/tools/go-outline/deps.nix +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - goPackagePath = "golang.org/x/tools"; - fetch = { - type = "git"; - url = "https://github.com/golang/tools"; - rev = "96b5a5404f303f074e6117d832a9873c439508f0"; - sha256 = "1h6r9xyp1v3w2x8d108vzghn65l6ia2h895irypmrwymfcp30y42"; - }; - } -]