Merge pull request #171877 from dtzWill/fix/issue-171609

This commit is contained in:
Artturi 2022-05-19 02:29:26 +03:00 committed by GitHub
commit d441aabf07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,16 @@
{ lib, stdenv, fetchurl, ncurses, glib, pkg-config, gtk2 }:
{ lib, stdenv, fetchurl, ncurses, glib, pkg-config, gtk2, util-linux }:
stdenv.mkDerivation rec {
pname = "latencytop";
version = "0.5";
patchPhase = "sed -i s,/usr,$out, Makefile";
postPatch = ''
sed -i s,/usr,$out, Makefile
# Fix #171609
substituteInPlace fsync.c --replace /bin/mount ${util-linux}/bin/mount
'';
preInstall = "mkdir -p $out/sbin";
src = fetchurl {