From c4d9e6d21924564b148d5901415bb24fb66b45a7 Mon Sep 17 00:00:00 2001 From: Anna Aurora Date: Wed, 20 Aug 2025 02:08:43 +0200 Subject: [PATCH] filius,ipfetch,starfetch: fix use of deprecated command options Replace the substitute command's deprecated "--replace" option with appropriate non-deprecated options. --- pkgs/by-name/fi/filius/package.nix | 2 +- pkgs/by-name/ip/ipfetch/package.nix | 2 +- pkgs/by-name/st/starfetch/package.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fi/filius/package.nix b/pkgs/by-name/fi/filius/package.nix index 9353cacba7ee..0affead69df3 100644 --- a/pkgs/by-name/fi/filius/package.nix +++ b/pkgs/by-name/fi/filius/package.nix @@ -28,7 +28,7 @@ maven.buildMavenPackage rec { postPatch = '' substituteInPlace src/deb/filius.desktop \ - --replace 'Exec=/usr/share/filius/filius.sh' 'Exec=filius' + --replace-fail 'Exec=/usr/share/filius/filius.sh' 'Exec=filius' ''; nativeBuildInputs = [ diff --git a/pkgs/by-name/ip/ipfetch/package.nix b/pkgs/by-name/ip/ipfetch/package.nix index ed4bf9b41b85..bc7f93e89a36 100644 --- a/pkgs/by-name/ip/ipfetch/package.nix +++ b/pkgs/by-name/ip/ipfetch/package.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation { postPatch = '' patchShebangs --host ipfetch # Not only does `/usr` have to be replaced but also `/flags` needs to be added because with Nix the script is broken without this. The `/flags` is somehow not needed if you install via the install script in the source repository. - substituteInPlace ./ipfetch --replace /usr/share/ipfetch $out/usr/share/ipfetch/flags + substituteInPlace ./ipfetch --replace-fail /usr/share/ipfetch $out/usr/share/ipfetch/flags ''; installPhase = '' mkdir -p $out/bin diff --git a/pkgs/by-name/st/starfetch/package.nix b/pkgs/by-name/st/starfetch/package.nix index 3abcb42bc0d2..bbdd6db4aad8 100644 --- a/pkgs/by-name/st/starfetch/package.nix +++ b/pkgs/by-name/st/starfetch/package.nix @@ -16,10 +16,10 @@ stdenv.mkDerivation rec { }; postPatch = '' - substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/ + substituteInPlace src/starfetch.cpp --replace-fail /usr/local/ $out/ '' + lib.optionalString stdenv.cc.isClang '' - substituteInPlace makefile --replace g++ clang++ + substituteInPlace makefile --replace-warn g++ clang++ ''; installPhase = ''