mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
mailsy: init at 5.0.0
This commit is contained in:
parent
231d5a7268
commit
5379872706
@ -1,22 +0,0 @@
|
|||||||
--- $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();
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
buildNpmPackage,
|
buildNpmPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
|
||||||
}:
|
}:
|
||||||
buildNpmPackage rec {
|
buildNpmPackage rec {
|
||||||
pname = "mailsy";
|
pname = "mailsy";
|
||||||
@ -16,17 +16,21 @@ buildNpmPackage rec {
|
|||||||
|
|
||||||
npmDepsHash = "sha256-ljmqNmLvRHPdsKyOdDfECBXHTIExM6nPZF45lqV+pDM=";
|
npmDepsHash = "sha256-ljmqNmLvRHPdsKyOdDfECBXHTIExM6nPZF45lqV+pDM=";
|
||||||
|
|
||||||
npmFlags = ["--legacy-peer-deps"];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
dontNpmBuild = true;
|
dontNpmBuild = true;
|
||||||
|
|
||||||
patches = [./fix-file-lookup.patch];
|
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 = with lib; {
|
meta = {
|
||||||
description = "Quickly generate a disposable email straight from terminal";
|
description = "Quickly generate a disposable email straight from terminal";
|
||||||
mainProgram = "mailsy";
|
mainProgram = "mailsy";
|
||||||
homepage = "https://fig.io/manual/mailsy";
|
homepage = "https://fig.io/manual/mailsy";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [maintainers._404wolf];
|
maintainers = [ lib.maintainers._404wolf ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user