From 033cdffa9ba0a609e2511471b50b27de13ac8b64 Mon Sep 17 00:00:00 2001 From: Paul Schyska Date: Mon, 17 May 2021 13:46:55 +0200 Subject: [PATCH] atop: use substituteInPlace instead of sed --- pkgs/os-specific/linux/atop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/atop/default.nix b/pkgs/os-specific/linux/atop/default.nix index 84a5870833a4..50a3e3e63168 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" ];