summary refs log tree commit diff
path: root/pkgs/tools/misc/opentelemetry-collector
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2023-07-25 13:27:31 +0000
committerJan Malakhovski <oxij@oxij.org>2023-08-03 16:32:03 +0000
commit5852f26bdcdca4a33b37d1631cfb3897bcc36fcc (patch)
tree84541d3de93f39e98f7fabc53094498c6defbc74 /pkgs/tools/misc/opentelemetry-collector
parent9aabdcf43f70b18bdebc39d7796c984672603d3e (diff)
downloadnixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar.gz
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar.bz2
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar.lz
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar.xz
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.tar.zst
nixpkgs-5852f26bdcdca4a33b37d1631cfb3897bcc36fcc.zip
treewide: noop: refer to `src.name` or similar in `sourceRoot` where appropriate, part 1: trivial cases
Diffstat (limited to 'pkgs/tools/misc/opentelemetry-collector')
-rw-r--r--pkgs/tools/misc/opentelemetry-collector/contrib.nix2
-rw-r--r--pkgs/tools/misc/opentelemetry-collector/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/opentelemetry-collector/contrib.nix b/pkgs/tools/misc/opentelemetry-collector/contrib.nix
index 66967b9213c..d5cddeb6e24 100644
--- a/pkgs/tools/misc/opentelemetry-collector/contrib.nix
+++ b/pkgs/tools/misc/opentelemetry-collector/contrib.nix
@@ -21,7 +21,7 @@ buildGoModule rec {
   vendorHash = "sha256-ABaRedZXPr2q2AmslVNIJUvONZa4tv7OkxBLR9GuBRE=";
 
   # there is a nested go.mod
-  sourceRoot = "source/cmd/otelcontribcol";
+  sourceRoot = "${src.name}/cmd/otelcontribcol";
 
   # upstream strongly recommends disabling CGO
   # additionally dependencies have had issues when GCO was enabled that weren't caught upstream
diff --git a/pkgs/tools/misc/opentelemetry-collector/default.nix b/pkgs/tools/misc/opentelemetry-collector/default.nix
index 76f43acf138..1c387462a60 100644
--- a/pkgs/tools/misc/opentelemetry-collector/default.nix
+++ b/pkgs/tools/misc/opentelemetry-collector/default.nix
@@ -14,7 +14,7 @@ buildGoModule rec {
     hash = "sha256-yywmnJUTigDYeiAuK0f2511vh6sS4oD4hJLPozAlWz4=";
   };
   # there is a nested go.mod
-  sourceRoot = "source/cmd/otelcorecol";
+  sourceRoot = "${src.name}/cmd/otelcorecol";
   vendorHash = "sha256-BNIQ0pTHGgwWw1cy7au6hUeECC8oGsSkxaX5BUCRG9Y=";
 
   # upstream strongly recommends disabling CGO