dd-agent: stay with python2
This commit is contained in:
parent
4f39a2db4d
commit
3842c35a2d
|
@ -1,7 +1,7 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, python
|
{ lib, stdenv, fetchFromGitHub, python2
|
||||||
, unzip, makeWrapper }:
|
, unzip, makeWrapper }:
|
||||||
let
|
let
|
||||||
python' = python.override {
|
python' = python2.override {
|
||||||
packageOverrides = self: super: {
|
packageOverrides = self: super: {
|
||||||
docker = self.buildPythonPackage rec {
|
docker = self.buildPythonPackage rec {
|
||||||
name = "docker-${version}";
|
name = "docker-${version}";
|
||||||
|
@ -82,7 +82,7 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
cat > $out/bin/dd-jmxfetch <<EOF
|
cat > $out/bin/dd-jmxfetch <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
exec ${python}/bin/python $out/agent/jmxfetch.py $@
|
exec ${python'.interpreter} $out/agent/jmxfetch.py $@
|
||||||
EOF
|
EOF
|
||||||
chmod a+x $out/bin/dd-jmxfetch
|
chmod a+x $out/bin/dd-jmxfetch
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue