packages: Add new-tab-identity

This seems to work, which is great.

For some reason it wasn't being initialized properly inside the virtual
machine but it does work on actual devices.
This commit is contained in:
Donovan Glover 2024-08-30 20:22:56 -04:00
parent 44fecbf9e4
commit 4ec9294c04
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 35 additions and 0 deletions

View File

@ -23,6 +23,7 @@ in
ublock-origin ublock-origin
yomitan yomitan
redlib redlib
new-tab-identity
]; ];
search = { search = {

View File

@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage {
pname = "new-tab-identity";
version = "0-unstable-2024-08-19";
src = fetchFromGitHub {
owner = "donovanglover";
repo = "new-tab-identity";
rev = "bf61dbda21d37b063062039ca246611ee83299ff";
hash = "sha256-/1id7MHWxkPpuiSWqLYGYQBk5kNxBOUbkexkvTZDkfw=";
};
npmDepsHash = "sha256-M0WPgg91FupGz4383gHf13kSsmAkjygmKZ5IxsM3VE0=";
installPhase = ''
runHook preInstall
install -Dm644 dist/new_tab_identity-1.0.zip "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/some-name@example.org.xpi"
runHook postInstall
'';
meta = {
homepage = "https://github.com/donovanglover/new-tab-identity";
description = "Browse the web from multiple VPN locations simultaneously";
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all;
};
}