From a460792706db84ffdc11fcbdba07fb82a6c41fef Mon Sep 17 00:00:00 2001 From: awwpotato Date: Tue, 21 Jan 2025 14:15:51 -0800 Subject: [PATCH 1/2] maintainers: add awwpotato --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index cbca57bef6130..cd59ac3d16ede 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2371,6 +2371,12 @@ githubId = 206242; name = "Andreas Wiese"; }; + awwpotato = { + email = "awwpotato@voidq.com"; + github = "awwpotato"; + githubId = 153149335; + name = "awwpotato"; + }; axertheaxe = { email = "axertheaxe@proton.me"; github = "AxerTheAxe"; From 2fb24403e4cdd29f88697ba70cbc8db22bb6db16 Mon Sep 17 00:00:00 2001 From: awwpotato Date: Tue, 21 Jan 2025 14:20:19 -0800 Subject: [PATCH 2/2] slacky: init at 0.0.5 --- pkgs/by-name/sl/slacky/package.nix | 69 ++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 pkgs/by-name/sl/slacky/package.nix diff --git a/pkgs/by-name/sl/slacky/package.nix b/pkgs/by-name/sl/slacky/package.nix new file mode 100644 index 0000000000000..3fd9458a3bee4 --- /dev/null +++ b/pkgs/by-name/sl/slacky/package.nix @@ -0,0 +1,69 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, + electron, + copyDesktopItems, + makeDesktopItem, + nix-update-script, +}: +buildNpmPackage rec { + pname = "slacky"; + version = "0.0.5"; + + src = fetchFromGitHub { + owner = "andirsun"; + repo = "Slacky"; + tag = "v${version}"; + hash = "sha256-nDxmzZqi7xEe4hnY6iXJg+613lSKElWxvF3w8bRDW90="; + }; + + npmDepsHash = "sha256-9+4cxeQw2Elug+xIgzNvpaSMgDVlBFz/+TW1jJwDm40="; + + npmPackFlags = [ "--ignore-scripts" ]; + + NODE_OPTIONS = "--openssl-legacy-provider"; + + nativeBuildInputs = [ + electron + copyDesktopItems + ]; + + env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; + + postInstall = '' + mkdir -p $out/share/icons + ln -s $out/lib/node_modules/${pname}/build/icons/icon.png $out/share/icons/${pname}.png + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ + --add-flags $out/lib/node_modules/${pname}/ + ''; + + desktopItems = lib.singleton (makeDesktopItem { + name = "slacky"; + exec = "slacky %u"; + icon = "slacky"; + desktopName = "Slacky"; + comment = "An unofficial Slack desktop client for arm64 Linux"; + startupWMClass = "com.andersonlaverde.slacky"; + type = "Application"; + categories = [ + "Network" + "InstantMessaging" + ]; + mimeTypes = [ + "x-scheme-handler/slack" + ]; + }); + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Unofficial Slack desktop client for arm64 Linux"; + homepage = "https://github.com/andirsun/Slacky"; + changelog = "https://github.com/andirsun/Slacky/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ awwpotato ]; + platforms = [ "aarch64-linux" ]; + mainProgram = "slacky"; + }; +}