2024-08-25 21:38:05 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitea,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "friendlyfox";
|
2024-10-16 03:25:13 +02:00
|
|
|
version = "3.1.0";
|
2024-08-25 21:38:05 +02:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "user0";
|
|
|
|
repo = "Mobile-Friendly-Firefox";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-10-16 03:25:13 +02:00
|
|
|
hash = "sha256-4y7rSAQT6N9VIQhRVyfLBCIb+bIUUOSawURywRCcb7c=";
|
2024-08-25 21:38:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm644 src/userContent/styles/fenix-colors/userContent.css -t $out
|
|
|
|
cat src/userChrome/fenix_one.css src/userChrome/dynamic_popups_pro.css > $out/userChrome.css
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
echo ".urlbarView { display: none !important; }" >> $out/userChrome.css
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Custom CSS styles for Firefox browsers on Linux, with a focus on mobile devices like Librem 5 and PinePhone";
|
|
|
|
license = lib.licenses.mpl20;
|
2024-10-10 05:12:32 +02:00
|
|
|
homepage = "https://codeberg.org/user0/Mobile-Friendly-Firefox";
|
2024-08-25 21:38:05 +02:00
|
|
|
maintainers = with lib.maintainers; [ donovanglover ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|