From 6dc58c7d9d81974e72ac1e54b9639e242b2e15dd Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:47:41 -0300 Subject: [PATCH] slack: move to pkgs/by-name --- .../slack/default.nix => by-name/sl/slack/package.nix} | 0 .../instant-messengers => by-name/sl}/slack/update.sh | 2 +- pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) rename pkgs/{applications/networking/instant-messengers/slack/default.nix => by-name/sl/slack/package.nix} (100%) rename pkgs/{applications/networking/instant-messengers => by-name/sl}/slack/update.sh (96%) diff --git a/pkgs/applications/networking/instant-messengers/slack/default.nix b/pkgs/by-name/sl/slack/package.nix similarity index 100% rename from pkgs/applications/networking/instant-messengers/slack/default.nix rename to pkgs/by-name/sl/slack/package.nix diff --git a/pkgs/applications/networking/instant-messengers/slack/update.sh b/pkgs/by-name/sl/slack/update.sh similarity index 96% rename from pkgs/applications/networking/instant-messengers/slack/update.sh rename to pkgs/by-name/sl/slack/update.sh index 8b66e30002843..48bc9b0ef9e23 100755 --- a/pkgs/applications/networking/instant-messengers/slack/update.sh +++ b/pkgs/by-name/sl/slack/update.sh @@ -7,7 +7,7 @@ latest_linux_version=$(curl -L --silent https://slack.com/downloads/linux | sed latest_mac_version=$(curl -L --silent https://slack.com/downloads/mac | sed -n 's/.*Version \([0-9\.]\+\).*/\1/p') nixpkgs="$(git rev-parse --show-toplevel)" -slack_nix="$nixpkgs/pkgs/applications/networking/instant-messengers/slack/default.nix" +slack_nix="$nixpkgs/pkgs/by-name/sl/slack/package.nix" nixpkgs_linux_version=$(cat "$slack_nix" | sed -n 's/.*x86_64-linux-version = \"\([0-9\.]\+\)\";.*/\1/p') nixpkgs_mac_version=$(cat "$slack_nix" | sed -n 's/.*x86_64-darwin-version = \"\([0-9\.]\+\)\";.*/\1/p') nixpkgs_mac_arm_version=$(cat "$slack_nix" | sed -n 's/.*aarch64-darwin-version = \"\([0-9\.]\+\)\";.*/\1/p') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 69eeb0c3ddaa2..800bd0284480f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14182,8 +14182,6 @@ with pkgs; singularity-overriden-nixos ; - slack = callPackage ../applications/networking/instant-messengers/slack { }; - sosreport = python3Packages.callPackage ../applications/logging/sosreport { }; inherit (callPackages ../development/libraries/wlroots {})