latencytop: fix hardcoded path to /bin/mount

Fixes #171609.

+8 -2
+8 -2
pkgs/os-specific/linux/latencytop/default.nix
··· 1 - { lib, stdenv, fetchurl, ncurses, glib, pkg-config, gtk2 }: 1 + { lib, stdenv, fetchurl, ncurses, glib, pkg-config, gtk2, util-linux }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "latencytop"; 5 5 version = "0.5"; 6 6 7 - patchPhase = "sed -i s,/usr,$out, Makefile"; 7 + postPatch = '' 8 + sed -i s,/usr,$out, Makefile 9 + 10 + # Fix #171609 11 + substituteInPlace fsync.c --replace /bin/mount ${util-linux}/bin/mount 12 + ''; 13 + 8 14 preInstall = "mkdir -p $out/sbin"; 9 15 10 16 src = fetchurl {