about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorwilliamvds <william@williamvds.me>2022-12-21 23:42:40 +0000
committerwilliamvds <william@williamvds.me>2022-12-21 23:51:59 +0000
commit1ec3fe7fb7ccc35cceb9444ac6c3c9206b411878 (patch)
tree8dc55730272855574fd9f4906f758a6d7239426a /pkgs/tools
parent5d6fa6fdeb97ce5763f8bc2fa7b4185c3562c43a (diff)
soco-cli: Set correct mainProgram
soco-cli provides a `soco` and `sonos` command which refer to the same module:
https://github.com/avantrec/soco-cli/blob/49bc7df15f1eaca2a475a9e158574b324f417443/setup.py#L36

From the documentation `sonos` seems to be preferred. Set `mainProgram` so it
works with nix-shell etc.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/audio/soco-cli/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/tools/audio/soco-cli/default.nix b/pkgs/tools/audio/soco-cli/default.nix
index 52614a8dc2201..72e5323f60f3b 100644
--- a/pkgs/tools/audio/soco-cli/default.nix
+++ b/pkgs/tools/audio/soco-cli/default.nix
@@ -37,5 +37,6 @@ python3.pkgs.buildPythonApplication rec {
     homepage = "https://github.com/avantrec/soco-cli";
     license = with licenses; [ asl20 ];
     maintainers = with maintainers; [ fab ];
+    mainProgram = "sonos";
   };
 }