filius,ipfetch,starfetch: fix use of deprecated command options (#435131)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user