From ff1a94e523ae9fb272e0581f068baee5d1068476 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 19 Mar 2024 03:14:51 +0100 Subject: treewide: add meta.mainProgram to packages with a single binary The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible. --- pkgs/applications/window-managers/hyprwm/hyprshade/default.nix | 1 + .../window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix | 1 + pkgs/applications/window-managers/i3/altlayout.nix | 1 + pkgs/applications/window-managers/i3/auto-layout.nix | 1 + pkgs/applications/window-managers/i3/blocks-gaps.nix | 1 + pkgs/applications/window-managers/i3/blocks.nix | 1 + pkgs/applications/window-managers/i3/cycle-focus.nix | 1 + pkgs/applications/window-managers/i3/easyfocus.nix | 1 + pkgs/applications/window-managers/i3/i3-ratiosplit.nix | 1 + pkgs/applications/window-managers/i3/i3-resurrect.nix | 1 + pkgs/applications/window-managers/i3/kitti3.nix | 1 + pkgs/applications/window-managers/i3/layout-manager.nix | 1 + pkgs/applications/window-managers/i3/wk-switch.nix | 1 + pkgs/applications/window-managers/i3/wmfocus.nix | 1 + pkgs/applications/window-managers/lemonbar/xft.nix | 1 + pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix | 1 + pkgs/applications/window-managers/xmonad/xmonadctl.nix | 1 + 17 files changed, 17 insertions(+) (limited to 'pkgs/applications/window-managers') diff --git a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix index f009ac40ac38..229f53ed3de8 100644 --- a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix +++ b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix @@ -27,6 +27,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/loqusion/hyprshade"; description = "Hyprland shade configuration tool"; + mainProgram = "hyprshade"; license = licenses.mit; maintainers = with maintainers; [ willswats ]; platforms = platforms.linux; diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix index 6c1d99fbb0c7..2825ef3a6563 100644 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix +++ b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix @@ -70,6 +70,7 @@ stdenv.mkDerivation (self: { meta = with lib; { homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland"; description = "xdg-desktop-portal backend for Hyprland"; + mainProgram = "hyprland-share-picker"; license = licenses.bsd3; maintainers = with maintainers; [ fufexan ]; platforms = platforms.linux; diff --git a/pkgs/applications/window-managers/i3/altlayout.nix b/pkgs/applications/window-managers/i3/altlayout.nix index 91f663907a0a..f6f1ecf20c1a 100644 --- a/pkgs/applications/window-managers/i3/altlayout.nix +++ b/pkgs/applications/window-managers/i3/altlayout.nix @@ -18,6 +18,7 @@ python3Packages.buildPythonApplication rec { meta = with lib; { maintainers = with maintainers; [ magnetophon ]; description = "Helps you handle more efficiently your screen real estate in i3wm by auto-splitting windows on their longest side"; + mainProgram = "i3altlayout"; homepage = "https://github.com/deadc0de6/i3altlayout"; license = licenses.gpl3Only; platforms = platforms.linux; diff --git a/pkgs/applications/window-managers/i3/auto-layout.nix b/pkgs/applications/window-managers/i3/auto-layout.nix index dfc0974834f4..bfcb35a870c9 100644 --- a/pkgs/applications/window-managers/i3/auto-layout.nix +++ b/pkgs/applications/window-managers/i3/auto-layout.nix @@ -18,6 +18,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Automatic, optimal tiling for i3wm"; + mainProgram = "i3-auto-layout"; homepage = "https://github.com/chmln/i3-auto-layout"; license = licenses.mit; maintainers = with maintainers; [ mephistophiles perstark ]; diff --git a/pkgs/applications/window-managers/i3/blocks-gaps.nix b/pkgs/applications/window-managers/i3/blocks-gaps.nix index deb0c99c313a..657e8d2dca1c 100644 --- a/pkgs/applications/window-managers/i3/blocks-gaps.nix +++ b/pkgs/applications/window-managers/i3/blocks-gaps.nix @@ -47,6 +47,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "A flexible scheduler for your i3bar blocks -- this is a fork to use with i3-gaps"; + mainProgram = "i3blocks"; homepage = "https://github.com/Airblader/i3blocks-gaps"; license = licenses.gpl3; maintainers = with maintainers; [ carlsverre ]; diff --git a/pkgs/applications/window-managers/i3/blocks.nix b/pkgs/applications/window-managers/i3/blocks.nix index 1574c587743b..e8f628fb4dc9 100644 --- a/pkgs/applications/window-managers/i3/blocks.nix +++ b/pkgs/applications/window-managers/i3/blocks.nix @@ -26,6 +26,7 @@ stdenv.mkDerivation { meta = { description = "A flexible scheduler for your i3bar blocks"; + mainProgram = "i3blocks"; homepage = "https://github.com/vivien/i3blocks"; license = licenses.gpl3; platforms = with platforms; freebsd ++ linux; diff --git a/pkgs/applications/window-managers/i3/cycle-focus.nix b/pkgs/applications/window-managers/i3/cycle-focus.nix index 180b074118ca..7927985460e2 100644 --- a/pkgs/applications/window-managers/i3/cycle-focus.nix +++ b/pkgs/applications/window-managers/i3/cycle-focus.nix @@ -18,6 +18,7 @@ rustPlatform.buildRustPackage { meta = with lib; { description = "A simple tool to cyclically switch between the windows on the active workspace"; + mainProgram = "i3-cycle-focus"; homepage = "https://github.com/TheDoctor314/i3-cycle-focus"; license = licenses.unlicense; maintainers = with maintainers; [ GaetanLepage ]; diff --git a/pkgs/applications/window-managers/i3/easyfocus.nix b/pkgs/applications/window-managers/i3/easyfocus.nix index a2ee445eaf12..a1f0895bff6d 100644 --- a/pkgs/applications/window-managers/i3/easyfocus.nix +++ b/pkgs/applications/window-managers/i3/easyfocus.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation { meta = with lib; { description = "Focus and select windows in i3"; + mainProgram = "i3-easyfocus"; homepage = "https://github.com/cornerman/i3-easyfocus"; maintainers = with maintainers; [teto]; license = licenses.gpl3; diff --git a/pkgs/applications/window-managers/i3/i3-ratiosplit.nix b/pkgs/applications/window-managers/i3/i3-ratiosplit.nix index fbd584f2baa9..0903ceb3185a 100644 --- a/pkgs/applications/window-managers/i3/i3-ratiosplit.nix +++ b/pkgs/applications/window-managers/i3/i3-ratiosplit.nix @@ -18,6 +18,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Resize newly created windows"; + mainProgram = "i3-ratiosplit"; homepage = "https://github.com/333fred/i3-ratiosplit"; license = licenses.mit; maintainers = with maintainers; [ svrana ]; diff --git a/pkgs/applications/window-managers/i3/i3-resurrect.nix b/pkgs/applications/window-managers/i3/i3-resurrect.nix index a84d97504bbb..c5fedfbe36e7 100644 --- a/pkgs/applications/window-managers/i3/i3-resurrect.nix +++ b/pkgs/applications/window-managers/i3/i3-resurrect.nix @@ -15,6 +15,7 @@ buildPythonApplication rec { meta = with lib; { homepage = "https://github.com/JonnyHaystack/i3-resurrect"; description = "A simple but flexible solution to saving and restoring i3 workspaces"; + mainProgram = "i3-resurrect"; license = licenses.gpl3; platforms= platforms.linux; maintainers = with maintainers; [ magnetophon ]; diff --git a/pkgs/applications/window-managers/i3/kitti3.nix b/pkgs/applications/window-managers/i3/kitti3.nix index 63e1224a316b..3068baee5d99 100644 --- a/pkgs/applications/window-managers/i3/kitti3.nix +++ b/pkgs/applications/window-managers/i3/kitti3.nix @@ -34,6 +34,7 @@ buildPythonApplication rec { meta = with lib; { homepage = "https://github.com/LandingEllipse/kitti3"; description = "Kitty drop-down service for sway & i3wm"; + mainProgram = "kitti3"; license = licenses.bsd3; maintainers = with maintainers; [ Enzime ]; }; diff --git a/pkgs/applications/window-managers/i3/layout-manager.nix b/pkgs/applications/window-managers/i3/layout-manager.nix index 8fd0364bb58c..b2a3adb98f90 100644 --- a/pkgs/applications/window-managers/i3/layout-manager.nix +++ b/pkgs/applications/window-managers/i3/layout-manager.nix @@ -32,6 +32,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://github.com/klaxalk/i3-layout-manager"; description = "Saving, loading and managing layouts for i3wm"; + mainProgram = "layout_manager"; license = licenses.mit; platforms = platforms.linux; maintainers = with maintainers; [ ]; diff --git a/pkgs/applications/window-managers/i3/wk-switch.nix b/pkgs/applications/window-managers/i3/wk-switch.nix index e077254b70f4..fadcfe9908da 100644 --- a/pkgs/applications/window-managers/i3/wk-switch.nix +++ b/pkgs/applications/window-managers/i3/wk-switch.nix @@ -24,6 +24,7 @@ python3Packages.buildPythonApplication rec { meta = with lib; { description = "XMonad-like workspace switching for i3 and sway"; + mainProgram = "i3-wk-switch"; maintainers = with maintainers; [ synthetica ]; platforms = platforms.linux; license = licenses.mit; diff --git a/pkgs/applications/window-managers/i3/wmfocus.nix b/pkgs/applications/window-managers/i3/wmfocus.nix index 8b45c7f8a1d9..af90b968bd04 100644 --- a/pkgs/applications/window-managers/i3/wmfocus.nix +++ b/pkgs/applications/window-managers/i3/wmfocus.nix @@ -24,6 +24,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Visually focus windows by label"; + mainProgram = "wmfocus"; homepage = "https://github.com/svenstaro/wmfocus"; license = licenses.mit; maintainers = with maintainers; [ synthetica ]; diff --git a/pkgs/applications/window-managers/lemonbar/xft.nix b/pkgs/applications/window-managers/lemonbar/xft.nix index 8d009a3458b3..80439f945fdc 100644 --- a/pkgs/applications/window-managers/lemonbar/xft.nix +++ b/pkgs/applications/window-managers/lemonbar/xft.nix @@ -17,6 +17,7 @@ stdenv.mkDerivation { meta = with lib; { description = "A lightweight xcb based bar with XFT-support"; + mainProgram = "lemonbar"; homepage = "https://github.com/drscream/lemonbar-xft"; license = licenses.mit; platforms = platforms.linux; diff --git a/pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix b/pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix index a988e1369ce7..8e85597cc7d3 100644 --- a/pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix +++ b/pkgs/applications/window-managers/phosh/phosh-mobile-settings.nix @@ -63,6 +63,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "A settings app for mobile specific things"; + mainProgram = "phosh-mobile-settings"; homepage = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings"; changelog = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings/-/blob/v${version}/debian/changelog"; license = licenses.gpl3Plus; diff --git a/pkgs/applications/window-managers/xmonad/xmonadctl.nix b/pkgs/applications/window-managers/xmonad/xmonadctl.nix index e0c452340456..f7dfe1354025 100644 --- a/pkgs/applications/window-managers/xmonad/xmonadctl.nix +++ b/pkgs/applications/window-managers/xmonad/xmonadctl.nix @@ -17,6 +17,7 @@ in stdenv.mkDerivation rec { meta = with lib; { platforms = platforms.unix; description = "Send commands to a running instance of xmonad"; + mainProgram = "xmonadctl"; homepage = "https://github.com/xmonad/xmonad-contrib"; license = licenses.bsd3; maintainers = [ maintainers.ajgrf ]; -- cgit v1.2.3