about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro2024-08-22 11:55:49 +0200
committerGitHub2024-08-22 11:55:49 +0200
commit0c143150b29cf34bd950ded4aae0e9996317aff7 (patch)
treee4e5c45d1d0f422c791ec715952bb8123c2b7b85
parent483c13b835408e573a1a50787fb90ee0aeec3ab5 (diff)
parent53798727067f1c9025d00be4813aabff6645a540 (diff)
Merge pull request #332859 from 404Wolf/add-mailsy
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/by-name/ma/mailsy/package.nix36
2 files changed, 42 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 631b7298e1ca..f6077db089af 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -212,6 +212,12 @@
     githubId = 882455;
     name = "Elliot Cameron";
   };
+  _404wolf = {
+    email = "wolfmermelstein@gmail.com";
+    github = "404wolf";
+    githubId = 108041238;
+    name = "Wolf Mermelstein";
+  };
   _414owen = {
     email = "owen@owen.cafe";
     github = "414owen";
diff --git a/pkgs/by-name/ma/mailsy/package.nix b/pkgs/by-name/ma/mailsy/package.nix
new file mode 100644
index 000000000000..7bda524ab227
--- /dev/null
+++ b/pkgs/by-name/ma/mailsy/package.nix
@@ -0,0 +1,36 @@
+{
+  lib,
+  buildNpmPackage,
+  fetchFromGitHub,
+}:
+buildNpmPackage rec {
+  pname = "mailsy";
+  version = "5.0.0";
+
+  src = fetchFromGitHub {
+    owner = "BalliAsghar";
+    repo = "Mailsy";
+    rev = version;
+    hash = "sha256-RnOWvu023SOcN83xEEkYFwgDasOmkMwSzJ/QYjvTBDo=";
+  };
+
+  npmDepsHash = "sha256-ljmqNmLvRHPdsKyOdDfECBXHTIExM6nPZF45lqV+pDM=";
+
+  npmFlags = [ "--legacy-peer-deps" ];
+
+  dontNpmBuild = true;
+
+  postPatch = ''
+    substituteInPlace utils/index.js \
+    --replace-fail 'dirname, "../data/account.json"' 'process.cwd(), "account.json"' \
+    --replace-fail 'dirname, "../data/email.html"' 'process.cwd(), "email.html"'
+  '';
+
+  meta = {
+    description = "Quickly generate a disposable email straight from terminal";
+    mainProgram = "mailsy";
+    homepage = "https://fig.io/manual/mailsy";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers._404wolf ];
+  };
+}