dd-agent: stay with python2

This commit is contained in:
Frederik Rietdijk 2021-03-25 12:08:31 +01:00
parent 4f39a2db4d
commit 3842c35a2d

View file

@ -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