maintainers: add 404wolf

mailsy init at 5.0.0
This commit is contained in:
Wolf Mermelstein 2024-08-06 20:50:51 -04:00
parent 02c887764c
commit 231d5a7268
3 changed files with 60 additions and 0 deletions

View File

@ -212,6 +212,12 @@
githubId = 882455; githubId = 882455;
name = "Elliot Cameron"; name = "Elliot Cameron";
}; };
_404wolf = {
email = "wolfmermelstein@gmail.com";
github = "404wolf";
githubId = 108041238;
name = "Wolf Mermelstein";
};
_414owen = { _414owen = {
email = "owen@owen.cafe"; email = "owen@owen.cafe";
github = "414owen"; github = "414owen";

View File

@ -0,0 +1,22 @@
--- $src/utils/index.js 2024-08-06 19:13:25.329421171 -0400
+++ $src/utils/index.js 2024-08-06 19:14:10.896022059 -0400
@@ -10,7 +10,7 @@
const dirname = path.dirname(fileURLToPath(import.meta.url));
-const adapter = new JSONFile(path.join(dirname, "../data/account.json"));
+const adapter = new JSONFile(path.join(process.cwd(), "account.json"));
const db = new Low(adapter);
@@ -142,7 +142,7 @@
});
// delete the account.json file
- await fs.unlink(path.join(dirname, "../data/account.json"));
+ await fs.unlink(path.join(process.cwd(), "account.json"));
// stop the spinner
spinner.stop();

View File

@ -0,0 +1,32 @@
{
buildNpmPackage,
fetchFromGitHub,
lib,
}:
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;
patches = [./fix-file-lookup.patch];
meta = with lib; {
description = "Quickly generate a disposable email straight from terminal";
mainProgram = "mailsy";
homepage = "https://fig.io/manual/mailsy";
license = licenses.mit;
maintainers = [maintainers._404wolf];
};
}