Skip to content

Commit

Permalink
datadog-agent: fix check fqdn hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin committed Feb 28, 2019
1 parent 4386517 commit 2d178c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/tools/networking/dd-agent/6.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoPackage, makeWrapper, pythonPackages, pkgconfig, systemd }:
{ lib, stdenv, fetchFromGitHub, buildGoPackage, makeWrapper, pythonPackages, pkgconfig, systemd, hostname }:

let
# keep this in sync with github.com/DataDog/agent-payload dependency
Expand Down Expand Up @@ -51,6 +51,8 @@ in buildGoPackage rec {
sed -e "s|PyChecksPath =.*|PyChecksPath = \"$bin/${python.sitePackages}\"|" \
-e "s|distPath =.*|distPath = \"$bin/share/datadog-agent\"|" \
-i cmd/agent/common/common_nix.go
sed -e "s|/bin/hostname|${lib.getBin hostname}/bin/hostname|" \
-i pkg/util/hostname_nix.go
'';

# Install the config files and python modules from the "dist" dir
Expand Down

0 comments on commit 2d178c8

Please sign in to comment.