summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovico Piero <ludovicopiero@pm.me>2023-08-11 11:56:27 +1000
committerLudovico Piero <ludovicopiero@pm.me>2023-08-11 11:56:27 +1000
commitb5116310bce262bfdf6653a7df7421ee468ca6b8 (patch)
tree8aaaf2de029215fd19a651a16e8e53ceb8cd4a28
parentcf73a86c35a84de0e2f3ba494327cf6fb51c0dfd (diff)
downloadnixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar.gz
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar.bz2
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar.lz
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar.xz
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.tar.zst
nixpkgs-b5116310bce262bfdf6653a7df7421ee468ca6b8.zip
treewide: add meta.mainProgram and other cleanup
-rw-r--r--pkgs/applications/misc/fuzzel/default.nix3
-rw-r--r--pkgs/applications/misc/swappy/default.nix5
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix1
-rw-r--r--pkgs/applications/video/streamlink/default.nix5
-rw-r--r--pkgs/applications/window-managers/sway/bg.nix5
-rw-r--r--pkgs/applications/window-managers/sway/idle.nix7
-rw-r--r--pkgs/tools/package-management/nixpkgs-review/default.nix3
-rw-r--r--pkgs/tools/wayland/slurp/default.nix7
-rw-r--r--pkgs/tools/wayland/wl-clip-persist/default.nix7
9 files changed, 26 insertions, 17 deletions
diff --git a/pkgs/applications/misc/fuzzel/default.nix b/pkgs/applications/misc/fuzzel/default.nix
index 2f8d26af436..496ef38626b 100644
--- a/pkgs/applications/misc/fuzzel/default.nix
+++ b/pkgs/applications/misc/fuzzel/default.nix
@@ -65,11 +65,12 @@ stdenv.mkDerivation rec {
   ];
 
   meta = with lib; {
+    changelog = "https://codeberg.org/dnkl/fuzzel/releases/tag/${version}";
     description = "Wayland-native application launcher, similar to rofi’s drun mode";
     homepage = "https://codeberg.org/dnkl/fuzzel";
     license = with licenses; [ mit zlib ];
+    mainProgram = "fuzzel";
     maintainers = with maintainers; [ fionera polykernel rodrgz ];
     platforms = with platforms; linux;
-    changelog = "https://codeberg.org/dnkl/fuzzel/releases/tag/${version}";
   };
 }
diff --git a/pkgs/applications/misc/swappy/default.nix b/pkgs/applications/misc/swappy/default.nix
index 9b3787dec4a..b0cfc24aab6 100644
--- a/pkgs/applications/misc/swappy/default.nix
+++ b/pkgs/applications/misc/swappy/default.nix
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
     owner = "jtheoof";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo=";
+    hash = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo=";
   };
 
   nativeBuildInputs = [ glib meson ninja pkg-config scdoc wrapGAppsHook ];
@@ -40,9 +40,10 @@ stdenv.mkDerivation rec {
   ];
 
   meta = with lib; {
-    homepage = "https://github.com/jtheoof/swappy";
     description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS";
+    homepage = "https://github.com/jtheoof/swappy";
     license = licenses.mit;
+    mainProgram = "swappy";
     maintainers = [ maintainers.matthiasbeyer ];
     platforms = platforms.linux;
   };
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index b0cd6ea67bf..26029c8d386 100644
--- a/pkgs/applications/terminal-emulators/wezterm/default.nix
+++ b/pkgs/applications/terminal-emulators/wezterm/default.nix
@@ -140,6 +140,7 @@ rustPlatform.buildRustPackage rec {
     description = "GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust";
     homepage = "https://wezfurlong.org/wezterm";
     license = licenses.mit;
+    mainProgram = "wezterm";
     maintainers = with maintainers; [ SuperSandro2000 mimame ];
   };
 }
diff --git a/pkgs/applications/video/streamlink/default.nix b/pkgs/applications/video/streamlink/default.nix
index 0f3fc27dc2b..873354ab897 100644
--- a/pkgs/applications/video/streamlink/default.nix
+++ b/pkgs/applications/video/streamlink/default.nix
@@ -45,8 +45,9 @@ python3Packages.buildPythonApplication rec {
   ];
 
   meta = with lib; {
-    homepage = "https://streamlink.github.io/";
+    changelog = "https://github.com/streamlink/streamlink/raw/${version}/CHANGELOG.md";
     description = "CLI for extracting streams from various websites to video player of your choosing";
+    homepage = "https://streamlink.github.io/";
     longDescription = ''
       Streamlink is a CLI utility that pipes videos from online
       streaming services to a variety of video players such as VLC, or
@@ -54,8 +55,8 @@ python3Packages.buildPythonApplication rec {
 
       Streamlink is a fork of the livestreamer project.
     '';
-    changelog = "https://github.com/streamlink/streamlink/raw/${version}/CHANGELOG.md";
     license = licenses.bsd2;
+    mainProgram = "streamlink";
     maintainers = with maintainers; [ dezgeg zraexy DeeUnderscore ];
   };
 }
diff --git a/pkgs/applications/window-managers/sway/bg.nix b/pkgs/applications/window-managers/sway/bg.nix
index fe63f661c29..aa5d12cdfc4 100644
--- a/pkgs/applications/window-managers/sway/bg.nix
+++ b/pkgs/applications/window-managers/sway/bg.nix
@@ -26,14 +26,15 @@ stdenv.mkDerivation rec {
 
   meta = with lib; {
     description = "Wallpaper tool for Wayland compositors";
+    inherit (src.meta) homepage;
     longDescription = ''
       A wallpaper utility for Wayland compositors, that is compatible with any
       Wayland compositor which implements the following Wayland protocols:
       wlr-layer-shell, xdg-output, and xdg-shell.
     '';
-    inherit (src.meta) homepage;
     license = licenses.mit;
-    platforms = platforms.linux;
+    mainProgram = "swaybg";
     maintainers = with maintainers; [ primeos ];
+    platforms = platforms.linux;
   };
 }
diff --git a/pkgs/applications/window-managers/sway/idle.nix b/pkgs/applications/window-managers/sway/idle.nix
index b410919022f..0ee08dc7ca1 100644
--- a/pkgs/applications/window-managers/sway/idle.nix
+++ b/pkgs/applications/window-managers/sway/idle.nix
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
     owner = "swaywm";
     repo = "swayidle";
     rev = version;
-    sha256 = "sha256-/U6Y9H5ZqIJph3TZVcwr9+Qfd6NZNYComXuC1D9uGHg=";
+    hash = "sha256-/U6Y9H5ZqIJph3TZVcwr9+Qfd6NZNYComXuC1D9uGHg=";
   };
 
   strictDeps = true;
@@ -29,13 +29,14 @@ stdenv.mkDerivation rec {
 
   meta = with lib; {
     description = "Idle management daemon for Wayland";
+    inherit (src.meta) homepage;
     longDescription = ''
       Sway's idle management daemon. It is compatible with any Wayland
       compositor which implements the KDE idle protocol.
     '';
-    inherit (src.meta) homepage;
     license = licenses.mit;
-    platforms = platforms.linux;
+    mainProgram = "swayidle";
     maintainers = with maintainers; [ primeos ];
+    platforms = platforms.linux;
   };
 }
diff --git a/pkgs/tools/package-management/nixpkgs-review/default.nix b/pkgs/tools/package-management/nixpkgs-review/default.nix
index 5899c491ef3..6cbf981cedd 100644
--- a/pkgs/tools/package-management/nixpkgs-review/default.nix
+++ b/pkgs/tools/package-management/nixpkgs-review/default.nix
@@ -60,10 +60,11 @@ python3.pkgs.buildPythonApplication rec {
   '';
 
   meta = with lib; {
+    changelog = "https://github.com/Mic92/nixpkgs-review/releases/tag/${version}";
     description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
     homepage = "https://github.com/Mic92/nixpkgs-review";
-    changelog = "https://github.com/Mic92/nixpkgs-review/releases/tag/${version}";
     license = licenses.mit;
+    mainProgram = "nixpkgs-review";
     maintainers = with maintainers; [ figsoda mic92 ];
   };
 }
diff --git a/pkgs/tools/wayland/slurp/default.nix b/pkgs/tools/wayland/slurp/default.nix
index 50c02d83be2..327cc7e91d1 100644
--- a/pkgs/tools/wayland/slurp/default.nix
+++ b/pkgs/tools/wayland/slurp/default.nix
@@ -47,11 +47,12 @@ stdenv.mkDerivation (finalAttrs: {
   mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
 
   meta = with lib; {
-    homepage = "https://github.com/emersion/slurp";
-    description = "Select a region in a Wayland compositor";
     changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
+    description = "Select a region in a Wayland compositor";
+    inherit (wayland.meta) platforms;
+    homepage = "https://github.com/emersion/slurp";
     license = licenses.mit;
+    mainProgram = "slurp";
     maintainers = with maintainers; [ buffet ];
-    inherit (wayland.meta) platforms;
   };
 })
diff --git a/pkgs/tools/wayland/wl-clip-persist/default.nix b/pkgs/tools/wayland/wl-clip-persist/default.nix
index 0d5626ba189..0828a34be84 100644
--- a/pkgs/tools/wayland/wl-clip-persist/default.nix
+++ b/pkgs/tools/wayland/wl-clip-persist/default.nix
@@ -29,11 +29,12 @@ rustPlatform.buildRustPackage {
   ];
 
   meta = with lib; {
-    inherit (wayland.meta) platforms;
-    homepage = "https://github.com/Linus789/wl-clip-persist";
+    broken = stdenv.isDarwin;
     description = "Keep Wayland clipboard even after programs close";
+    homepage = "https://github.com/Linus789/wl-clip-persist";
+    inherit (wayland.meta) platforms;
     license = licenses.mit;
+    mainProgram = "wl-clip-persist";
     maintainers = with maintainers; [ thiagokokada ];
-    broken = stdenv.isDarwin;
   };
 }