atop: use substituteInPlace instead of sed

wip/little-gl
Paul Schyska 3 years ago
parent 3b0bc54131
commit 033cdffa9b
No known key found for this signature in database
GPG Key ID: D49D4F8259DB724F
  1. 4
      pkgs/os-specific/linux/atop/default.nix

@ -49,8 +49,8 @@ stdenv.mkDerivation rec {
findutils=${findutils} systemd=${systemd} substituteAllInPlace "$f"
done
sed -e 's/chown/true/g' -i Makefile
sed -e 's/chmod 04711/chmod 0711/g' -i Makefile
substituteInPlace Makefile --replace 'chown' 'true'
substituteInPlace Makefile --replace 'chmod 04711' 'chmod 0711'
'';
installTargets = [ "systemdinstall" ];

Loading…
Cancel
Save