Unverified Commit c4d9e6d2 authored by Anna Aurora's avatar Anna Aurora
Browse files

filius,ipfetch,starfetch: fix use of deprecated command options

Replace the substitute command's deprecated "--replace" option with appropriate
non-deprecated options.
parent 5be22e0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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 = ''