From c106fc4ba469457cff63164aea98b887214e1a08 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 19 Jul 2022 22:34:47 -0700 Subject: [PATCH] gpsd: unbreak the build for guiSupport=false The `rm $out/bin/xgps*` command fails because that file is not there in the first place. Let's change it to `rm -f $out/bin/xgps*` so we can build with `guiSupport=false`. --- pkgs/servers/gpsd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/gpsd/default.nix b/pkgs/servers/gpsd/default.nix index cf23ef9d2feb..ab6d9fef5eda 100644 --- a/pkgs/servers/gpsd/default.nix +++ b/pkgs/servers/gpsd/default.nix @@ -109,7 +109,7 @@ stdenv.mkDerivation rec { # remove binaries for x-less install because xgps sconsflag is partially broken postFixup = '' - ${if guiSupport then "" else "rm $out/bin/xgps*"} + ${if guiSupport then "" else "rm -f $out/bin/xgps*"} wrapPythonProgramsIn $out/bin "$out $pythonPath" '';