Skip to content

Commit 1ac6bd9

Browse files
authored
slacky: init at 0.0.5 (#375653)
2 parents 2ca9c4f + 8780a02 commit 1ac6bd9

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,12 @@
24512451
githubId = 206242;
24522452
name = "Andreas Wiese";
24532453
};
2454+
awwpotato = {
2455+
email = "[email protected]";
2456+
github = "awwpotato";
2457+
githubId = 153149335;
2458+
name = "awwpotato";
2459+
};
24542460
axertheaxe = {
24552461
email = "[email protected]";
24562462
github = "AxerTheAxe";

pkgs/by-name/sl/slacky/package.nix

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
lib,
3+
buildNpmPackage,
4+
fetchFromGitHub,
5+
electron,
6+
copyDesktopItems,
7+
makeDesktopItem,
8+
nix-update-script,
9+
}:
10+
buildNpmPackage rec {
11+
pname = "slacky";
12+
version = "0.0.5";
13+
14+
src = fetchFromGitHub {
15+
owner = "andirsun";
16+
repo = "Slacky";
17+
tag = "v${version}";
18+
hash = "sha256-nDxmzZqi7xEe4hnY6iXJg+613lSKElWxvF3w8bRDW90=";
19+
};
20+
21+
npmDepsHash = "sha256-9+4cxeQw2Elug+xIgzNvpaSMgDVlBFz/+TW1jJwDm40=";
22+
23+
npmPackFlags = [ "--ignore-scripts" ];
24+
25+
nativeBuildInputs = [
26+
electron
27+
copyDesktopItems
28+
];
29+
30+
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
31+
32+
postInstall = ''
33+
mkdir -p $out/share/icons
34+
ln -s $out/lib/node_modules/slacky/build/icons/icon.png $out/share/icons/slacky.png
35+
makeWrapper ${electron}/bin/electron $out/bin/slacky \
36+
--add-flags $out/lib/node_modules/slacky/
37+
'';
38+
39+
desktopItems = lib.singleton (makeDesktopItem {
40+
name = "slacky";
41+
exec = "slacky %u";
42+
icon = "slacky";
43+
desktopName = "Slacky";
44+
comment = "An unofficial Slack desktop client for arm64 Linux";
45+
startupWMClass = "com.andersonlaverde.slacky";
46+
type = "Application";
47+
categories = [
48+
"Network"
49+
"InstantMessaging"
50+
];
51+
mimeTypes = [
52+
"x-scheme-handler/slack"
53+
];
54+
});
55+
56+
passthru.updateScript = nix-update-script { };
57+
58+
meta = {
59+
description = "Unofficial Slack desktop client for arm64 Linux";
60+
homepage = "https://github.com/andirsun/Slacky";
61+
changelog = "https://github.com/andirsun/Slacky/releases/tag/v${version}";
62+
license = lib.licenses.mit;
63+
maintainers = with lib.maintainers; [ awwpotato ];
64+
platforms = [ "aarch64-linux" ];
65+
mainProgram = "slacky";
66+
};
67+
}

0 commit comments

Comments
 (0)