mariadb: mytop add "clear" to PATH

The following error was printed every second:

    Can't exec "clear": Not a directory at /nix/store/.../bin/.mytop-wrapped line 110.
    Use of uninitialized value $CLEAR in string at /nix/store/.../bin/.mytop-wrapped line 781.

Therefore the mytop output was repeatedly displayed instead of updating itself "in-place".
This commit is contained in:
Johannes Schleifenbaum 2020-02-03 15:13:58 +01:00
parent 8663b7b3b5
commit 39ebcc496f
No known key found for this signature in database
GPG key ID: 059093B1A278BCD0

View file

@ -194,7 +194,7 @@ server = stdenv.mkDerivation (common // {
# perlPackages.DBDmysql is broken on darwin
postFixup = optionalString (!stdenv.hostPlatform.isDarwin) ''
wrapProgram $out/bin/mytop --set PATH ${less}/bin/less
wrapProgram $out/bin/mytop --set PATH ${makeBinPath [ less ncurses ]}
'';
CXXFLAGS = optionalString stdenv.hostPlatform.isi686 "-fpermissive";