From 075ac89accd137f176e558bc3a67e04ce8702121 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 7 Jun 2020 03:01:57 +0000 Subject: modules/sway: make status_command output directory Putting the status_command program at $out will mean that its store path shows up in ps, which makes it difficult to scan. So make $out a directory, with the status command inside it. --- modules/workstation/windowing/sway/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/workstation') diff --git a/modules/workstation/windowing/sway/default.nix b/modules/workstation/windowing/sway/default.nix index 5901639d1baa..e05779e5513d 100644 --- a/modules/workstation/windowing/sway/default.nix +++ b/modules/workstation/windowing/sway/default.nix @@ -29,9 +29,10 @@ inherit (cfg) extraConfig; }; - status_command = pkgs.runCommandCC "status" {} '' - c++ -std=c++17 -o $out ${./status.cpp} - ''; + status_command = "${pkgs.runCommandCC "status" {} '' + mkdir -p $out/bin + c++ -std=c++17 -o $out/bin/status ${./status.cpp} + ''}/bin/status"; choose_workspace = pkgs.substituteAll { src = ./choose_workspace.sh.in; -- cgit 1.4.1