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 }:
|
||||
let
|
||||
python' = python.override {
|
||||
python' = python2.override {
|
||||
packageOverrides = self: super: {
|
||||
docker = self.buildPythonPackage rec {
|
||||
name = "docker-${version}";
|
||||
@ -82,7 +82,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
cat > $out/bin/dd-jmxfetch <<EOF
|
||||
#!/usr/bin/env bash
|
||||
exec ${python}/bin/python $out/agent/jmxfetch.py $@
|
||||
exec ${python'.interpreter} $out/agent/jmxfetch.py $@
|
||||
EOF
|
||||
chmod a+x $out/bin/dd-jmxfetch
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user