From aae6b38b213c083d1d3f1c298ec0724bba0b14d1 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 21 Jun 2023 16:27:22 -0400 Subject: [PATCH] src-cli: 5.0.3 -> 5.1.0 Diff: https://github.com/sourcegraph/src-cli/compare/5.0.3...5.1.0 Changelog: https://github.com/sourcegraph/src-cli/blob/5.1.0/CHANGELOG.md --- pkgs/development/tools/misc/src-cli/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/misc/src-cli/default.nix b/pkgs/development/tools/misc/src-cli/default.nix index d3980ff319c4..959b02d72585 100644 --- a/pkgs/development/tools/misc/src-cli/default.nix +++ b/pkgs/development/tools/misc/src-cli/default.nix @@ -1,27 +1,36 @@ { lib , buildGoModule , fetchFromGitHub +, stdenv +, xorg +, darwin , testers , src-cli }: buildGoModule rec { pname = "src-cli"; - version = "5.0.3"; + version = "5.1.0"; src = fetchFromGitHub { owner = "sourcegraph"; repo = "src-cli"; rev = version; - hash = "sha256-KqCH4f9QPfr/Hm4phR9qeCV925RkOawGnbCx8wz/QwE="; + hash = "sha256-sN6Ea1kJce8Jqy8YrkWzDrQDrmA8F+UYz7ZuqfdbnJ4="; }; - vendorHash = "sha256-NMLrBYGscZexnR43I4Ku9aqzJr38z2QAnZo0RouHFrc="; + vendorHash = "sha256-A533f+FfEzU2TlNwHkD8gjeQYRATz85cCCmqLdl9290="; subPackages = [ "cmd/src" ]; + buildInputs = lib.optionals stdenv.isLinux [ + xorg.libX11 + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Cocoa + ]; + ldflags = [ "-s" "-w"