filius,ipfetch,starfetch: fix use of deprecated command options (#435131)

This commit is contained in:
Peder Bergebakken Sundt
2025-08-26 20:47:33 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 = [
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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 = ''