From f142493a6a4e2ef9851884d482d14fba1de375a6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 28 Oct 2020 00:51:39 +0100 Subject: systemd: add withShellCompletions flag --- pkgs/os-specific/linux/systemd/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/os-specific/linux/systemd') diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index e8a38bce882..49279c4b578 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -69,6 +69,7 @@ , withPolkit ? true , withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway , withResolved ? true +, withShellCompletions ? true , withTimedated ? true , withTimesyncd ? true @@ -278,6 +279,9 @@ stdenv.mkDerivation { "-Defi-libdir=${toString gnu-efi}/lib" "-Defi-includedir=${toString gnu-efi}/include/efi" "-Defi-ldsdir=${toString gnu-efi}/lib" + ] ++ lib.optionals (withShellCompletions == false) [ + "-Dbashcompletiondir=no" + "-Dzshcompletiondir=no" ]; preConfigure = '' -- cgit 1.4.1