about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-07-19 22:34:47 -0700
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-07-28 15:12:25 +0200
commitc106fc4ba469457cff63164aea98b887214e1a08 (patch)
treefb0e6a1963f544794df3e013ecdc61928a223d7f /pkgs/servers
parent2d9b7cb5f0a41da95fccc120acf730fd20d8598d (diff)
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`.
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/gpsd/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/gpsd/default.nix b/pkgs/servers/gpsd/default.nix
index cf23ef9d2feb2..ab6d9fef5eda3 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"
   '';