From 0fbdc56f4f277e6c377c55c4aec9f7bb4e7fa391 Mon Sep 17 00:00:00 2001 From: awwpotato Date: Tue, 21 Jan 2025 14:20:19 -0800 Subject: [PATCH] slacky: init at 0.0.5 --- pkgs/by-name/sl/slacky/package.nix | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 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 00000000000000..7022a0669b882e --- /dev/null +++ b/pkgs/by-name/sl/slacky/package.nix @@ -0,0 +1,43 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, + electron, +}: +buildNpmPackage rec { + pname = "slacky"; + version = "0.0.5"; + + src = fetchFromGitHub { + owner = "andirsun"; + repo = "Slacky"; + rev = "v${version}"; + hash = "sha256-nDxmzZqi7xEe4hnY6iXJg+613lSKElWxvF3w8bRDW90="; + }; + + npmDepsHash = "sha256-9+4cxeQw2Elug+xIgzNvpaSMgDVlBFz/+TW1jJwDm40="; + + npmPackFlags = [ "--ignore-scripts" ]; + + npmBuildScript = "pack"; + + NODE_OPTIONS = "--openssl-legacy-provider"; + + nativeBuildInputs = [ electron ]; + + env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; + + postInstall = '' + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ + --add-flags $out/lib/node_modules/${pname}/dist/app/main.js + ''; + + meta = { + description = "Unofficial Slack desktop client for arm64 Linux"; + homepage = "https://github.com/andirsun/Slacky"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ awwpotato ]; + platforms = [ "aarch64-linux" ]; + mainProgram = "slacky"; + }; +}