summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/os-specific/linux/atop/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/atop/default.nix b/pkgs/os-specific/linux/atop/default.nix
index 84a5870833a..50a3e3e6316 100644
--- a/pkgs/os-specific/linux/atop/default.nix
+++ b/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" ];