File tree Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 24512451 githubId = 206242;
24522452 name = "Andreas Wiese";
24532453 };
2454+ awwpotato = {
2455+ 2456+ github = "awwpotato";
2457+ githubId = 153149335;
2458+ name = "awwpotato";
2459+ };
24542460 axertheaxe = {
2455246124562462 github = "AxerTheAxe";
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments