2022-02-17 19:51:28 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
makeDesktopItem,
|
|
|
|
makeWrapper,
|
|
|
|
lndir,
|
|
|
|
config,
|
|
|
|
replace,
|
|
|
|
fetchurl,
|
|
|
|
zip,
|
|
|
|
unzip,
|
|
|
|
jq,
|
|
|
|
xdg-utils,
|
|
|
|
writeText
|
2022-02-07 20:06:51 +00:00
|
|
|
## various stuff that can be plugged in
|
2022-02-17 19:51:28 +00:00
|
|
|
,
|
|
|
|
ffmpeg,
|
|
|
|
xorg,
|
|
|
|
alsa-lib,
|
|
|
|
libpulseaudio,
|
|
|
|
libcanberra-gtk3,
|
|
|
|
libglvnd,
|
|
|
|
libnotify,
|
|
|
|
opensc,
|
|
|
|
gnome
|
2022-02-07 20:06:51 +00:00
|
|
|
/*
|
|
|
|
.gnome-shell
|
|
|
|
*/
|
2022-02-17 19:51:28 +00:00
|
|
|
,
|
|
|
|
browserpass,
|
|
|
|
chrome-gnome-shell,
|
|
|
|
uget-integrator,
|
|
|
|
plasma5Packages,
|
|
|
|
bukubrow,
|
|
|
|
pipewire,
|
|
|
|
tridactyl-native,
|
|
|
|
fx_cast_bridge,
|
|
|
|
udev,
|
|
|
|
libkrb5,
|
|
|
|
libva,
|
|
|
|
mesa,
|
|
|
|
cups,
|
2022-02-07 01:22:14 +00:00
|
|
|
}:
|
|
|
|
## configurability of the wrapper itself
|
2022-02-07 20:06:51 +00:00
|
|
|
browser: let
|
2022-02-07 01:22:14 +00:00
|
|
|
wrapper =
|
2022-02-17 19:51:28 +00:00
|
|
|
{
|
|
|
|
applicationName ? browser.applicationName or (lib.getName browser),
|
|
|
|
pname ? applicationName,
|
|
|
|
version ? lib.getVersion browser,
|
|
|
|
desktopName ?
|
2022-02-07 20:06:51 +00:00
|
|
|
# applicationName with first letter capitalized
|
2022-02-17 19:51:28 +00:00
|
|
|
(
|
|
|
|
lib.toUpper (lib.substring 0 1 applicationName)
|
|
|
|
+ lib.substring 1 (-1) applicationName
|
|
|
|
),
|
|
|
|
nameSuffix ? "",
|
|
|
|
icon ? applicationName,
|
|
|
|
extraNativeMessagingHosts ? [],
|
|
|
|
pkcs11Modules ? [],
|
|
|
|
forceWayland ? true,
|
|
|
|
useGlvnd ? true,
|
|
|
|
cfg ? config.${applicationName} or {}
|
2022-02-07 20:06:51 +00:00
|
|
|
## Following options are needed for extra prefs & policies
|
|
|
|
# For more information about anti tracking (german website)
|
|
|
|
# visit https://wiki.kairaven.de/open/app/firefox
|
2022-02-17 19:51:28 +00:00
|
|
|
,
|
|
|
|
extraPrefs ? ""
|
2022-02-07 20:06:51 +00:00
|
|
|
# For more information about policies visit
|
|
|
|
# https://github.com/mozilla/policy-templates#enterprisepoliciesenabled
|
2022-02-17 19:51:28 +00:00
|
|
|
,
|
|
|
|
extraPolicies ? {},
|
|
|
|
libName ? "waterfox"
|
2022-02-07 20:06:51 +00:00
|
|
|
# Important for tor package or the like
|
2022-02-17 19:51:28 +00:00
|
|
|
,
|
|
|
|
nixExtensions ? null,
|
2022-02-07 01:22:14 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
ffmpegSupport = browser.ffmpegSupport or false;
|
|
|
|
gssSupport = browser.gssSupport or false;
|
|
|
|
alsaSupport = browser.alsaSupport or false;
|
|
|
|
pipewireSupport = browser.pipewireSupport or false;
|
|
|
|
# PCSC-Lite daemon (services.pcscd) also must be enabled for waterfox to access smartcards
|
|
|
|
smartcardSupport = cfg.smartcardSupport or false;
|
|
|
|
|
2022-02-07 20:06:51 +00:00
|
|
|
nativeMessagingHosts = (
|
2022-02-17 19:51:28 +00:00
|
|
|
[]
|
2022-02-07 20:06:51 +00:00
|
|
|
++ lib.optional (cfg.enableBrowserpass or false) (lib.getBin browserpass)
|
|
|
|
++ lib.optional (cfg.enableBukubrow or false) bukubrow
|
|
|
|
++ lib.optional (cfg.enableTridactylNative or false) tridactyl-native
|
|
|
|
++ lib.optional (cfg.enableGnomeExtensions or false) chrome-gnome-shell
|
|
|
|
++ lib.optional (cfg.enableUgetIntegrator or false) uget-integrator
|
|
|
|
++ lib.optional (cfg.enablePlasmaBrowserIntegration or false)
|
|
|
|
plasma5Packages.plasma-browser-integration
|
|
|
|
++ lib.optional (cfg.enableFXCastBridge or false) fx_cast_bridge
|
|
|
|
++ extraNativeMessagingHosts
|
|
|
|
);
|
|
|
|
libs =
|
2022-02-17 19:51:28 +00:00
|
|
|
lib.optionals stdenv.isLinux [udev libva mesa libnotify xorg.libXScrnSaver cups]
|
2022-02-07 20:06:51 +00:00
|
|
|
++ lib.optional (pipewireSupport && lib.versionAtLeast version "83")
|
|
|
|
pipewire
|
|
|
|
++ lib.optional ffmpegSupport ffmpeg
|
|
|
|
++ lib.optional gssSupport libkrb5
|
|
|
|
++ lib.optional useGlvnd libglvnd
|
|
|
|
++ lib.optionals (cfg.enableQuakeLive or false) (
|
2022-02-15 11:24:34 +00:00
|
|
|
with xorg; [
|
2022-02-07 20:06:51 +00:00
|
|
|
stdenv.cc
|
|
|
|
libX11
|
|
|
|
libXxf86dga
|
|
|
|
libXxf86vm
|
|
|
|
libXext
|
|
|
|
libXt
|
|
|
|
alsa-lib
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
)
|
|
|
|
++ lib.optional (config.pulseaudio or true) libpulseaudio
|
|
|
|
++ lib.optional alsaSupport alsa-lib
|
|
|
|
++ lib.optional smartcardSupport opensc
|
|
|
|
++ pkcs11Modules;
|
2022-02-17 19:51:28 +00:00
|
|
|
gtk_modules = [libcanberra-gtk3];
|
2022-02-07 01:22:14 +00:00
|
|
|
|
|
|
|
#########################
|
|
|
|
# #
|
|
|
|
# EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#########################
|
|
|
|
policiesJson = writeText "policies.json" (builtins.toJSON enterprisePolicies);
|
|
|
|
|
|
|
|
usesNixExtensions = nixExtensions != null;
|
|
|
|
|
2022-02-07 20:06:51 +00:00
|
|
|
nameArray = builtins.map (a: a.name) (
|
|
|
|
if usesNixExtensions
|
|
|
|
then nixExtensions
|
2022-02-17 19:51:28 +00:00
|
|
|
else []
|
2022-02-07 20:06:51 +00:00
|
|
|
);
|
2022-02-07 01:22:14 +00:00
|
|
|
|
|
|
|
# Check that every extension has a unqiue .name attribute
|
|
|
|
# and an extid attribute
|
2022-02-07 20:06:51 +00:00
|
|
|
extensions =
|
|
|
|
if nameArray != (lib.unique nameArray)
|
|
|
|
then throw "Waterfox addon name needs to be unique"
|
2022-02-07 01:22:14 +00:00
|
|
|
else
|
2022-02-07 20:06:51 +00:00
|
|
|
builtins.map (
|
2022-02-15 11:24:34 +00:00
|
|
|
a:
|
|
|
|
if !(builtins.hasAttr "extid" a)
|
|
|
|
then throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"
|
|
|
|
else a
|
2022-02-07 20:06:51 +00:00
|
|
|
) (
|
|
|
|
if usesNixExtensions
|
|
|
|
then nixExtensions
|
2022-02-17 19:51:28 +00:00
|
|
|
else []
|
2022-02-07 20:06:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
enterprisePolicies = {
|
|
|
|
policies =
|
|
|
|
lib.optionalAttrs usesNixExtensions {
|
|
|
|
DisableAppUpdate = true;
|
|
|
|
}
|
|
|
|
// lib.optionalAttrs usesNixExtensions {
|
|
|
|
ExtensionSettings =
|
|
|
|
{
|
|
|
|
"*" = {
|
|
|
|
blocked_install_message = "You can't have manual extension mixed with nix extensions";
|
|
|
|
installation_mode = "blocked";
|
2022-02-07 01:22:14 +00:00
|
|
|
};
|
|
|
|
}
|
2022-02-07 20:06:51 +00:00
|
|
|
// lib.foldr (
|
2022-02-15 11:24:34 +00:00
|
|
|
e: ret:
|
|
|
|
ret
|
|
|
|
// {
|
|
|
|
"${e.extid}" = {
|
|
|
|
installation_mode = "allowed";
|
|
|
|
};
|
|
|
|
}
|
2022-02-17 19:51:28 +00:00
|
|
|
) {}
|
2022-02-07 20:06:51 +00:00
|
|
|
extensions;
|
|
|
|
}
|
|
|
|
// lib.optionalAttrs usesNixExtensions {
|
2022-02-07 01:22:14 +00:00
|
|
|
Extensions = {
|
2022-02-07 20:06:51 +00:00
|
|
|
Install =
|
2022-02-17 19:51:28 +00:00
|
|
|
lib.foldr (e: ret: ret ++ ["${e.outPath}/${e.extid}.xpi"]) []
|
2022-02-07 20:06:51 +00:00
|
|
|
extensions;
|
2022-02-07 01:22:14 +00:00
|
|
|
};
|
2022-02-07 20:06:51 +00:00
|
|
|
}
|
|
|
|
// lib.optionalAttrs smartcardSupport {
|
2022-02-07 01:22:14 +00:00
|
|
|
SecurityDevices = {
|
|
|
|
"OpenSC PKCS#11 Module" = "onepin-opensc-pkcs11.so";
|
|
|
|
};
|
|
|
|
}
|
2022-02-07 20:06:51 +00:00
|
|
|
// extraPolicies;
|
2022-02-07 01:22:14 +00:00
|
|
|
};
|
|
|
|
|
2022-02-07 20:06:51 +00:00
|
|
|
waterfoxCfg = writeText "waterfox.cfg" ''
|
2022-02-07 01:22:14 +00:00
|
|
|
// First line must be a comment
|
|
|
|
|
|
|
|
// Disables addon signature checking
|
|
|
|
// to be able to install addons that do not have an extid
|
|
|
|
// Security is maintained because only user whitelisted addons
|
|
|
|
// with a checksum can be installed
|
2022-02-07 20:06:51 +00:00
|
|
|
${
|
2022-02-17 19:51:28 +00:00
|
|
|
lib.optionalString usesNixExtensions ''lockPref("xpinstall.signatures.required", false)''
|
|
|
|
};
|
2022-02-07 01:22:14 +00:00
|
|
|
${extraPrefs}
|
|
|
|
'';
|
|
|
|
|
|
|
|
#############################
|
|
|
|
# #
|
|
|
|
# END EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#############################
|
|
|
|
|
|
|
|
# TODO: remove this after the next release (21.03)
|
|
|
|
configPlugins = lib.filter (a: builtins.hasAttr a cfg) [
|
|
|
|
"enableAdobeFlash"
|
|
|
|
"enableAdobeReader"
|
|
|
|
"enableBluejeans"
|
|
|
|
"enableDjvu"
|
|
|
|
"enableFriBIDPlugin"
|
|
|
|
"enableGoogleTalkPlugin"
|
|
|
|
"enableMPlayer"
|
|
|
|
"enableVLC"
|
|
|
|
"icedtea"
|
|
|
|
"jre"
|
|
|
|
];
|
2022-02-07 20:06:51 +00:00
|
|
|
pluginsError = "Your configuration mentions ${
|
|
|
|
lib.concatMapStringsSep ", " (p: applicationName + "." + p)
|
|
|
|
configPlugins
|
|
|
|
}. All plugin related options have been removed.";
|
|
|
|
in
|
2022-02-17 19:51:28 +00:00
|
|
|
if configPlugins != []
|
2022-02-07 20:06:51 +00:00
|
|
|
then throw pluginsError
|
|
|
|
else
|
|
|
|
(
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = applicationName;
|
|
|
|
exec = "${applicationName}${nameSuffix} %U";
|
|
|
|
inherit icon;
|
|
|
|
comment = "";
|
|
|
|
desktopName = "${desktopName}${nameSuffix}${lib.optionalString forceWayland " (Wayland)"}";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
categories = "Network;WebBrowser;";
|
|
|
|
mimeType = lib.concatStringsSep ";" [
|
|
|
|
"text/html"
|
|
|
|
"text/xml"
|
|
|
|
"application/xhtml+xml"
|
|
|
|
"application/vnd.mozilla.xul+xml"
|
|
|
|
"x-scheme-handler/http"
|
|
|
|
"x-scheme-handler/https"
|
|
|
|
"x-scheme-handler/ftp"
|
|
|
|
];
|
|
|
|
};
|
2022-02-07 01:22:14 +00:00
|
|
|
|
2022-02-17 19:51:28 +00:00
|
|
|
nativeBuildInputs = [makeWrapper lndir replace];
|
|
|
|
buildInputs = [browser.gtk3];
|
2022-02-07 20:06:51 +00:00
|
|
|
|
|
|
|
buildCommand =
|
|
|
|
lib.optionalString stdenv.isDarwin ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -R --no-preserve=mode,ownership ${browser}/Applications/${
|
2022-02-17 19:51:28 +00:00
|
|
|
applicationName
|
|
|
|
}.app $out/Applications
|
2022-02-07 20:06:51 +00:00
|
|
|
rm -f $out${browser.execdir or "/bin"}/${applicationName}
|
|
|
|
''
|
|
|
|
+ ''
|
|
|
|
if [ ! -x "${browser}${browser.execdir or "/bin"}/${applicationName}" ]
|
|
|
|
then
|
|
|
|
echo "cannot find executable file \`${browser}${
|
2022-02-17 19:51:28 +00:00
|
|
|
browser.execdir or "/bin"
|
|
|
|
}/${applicationName}'"
|
2022-02-07 20:06:51 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
#########################
|
|
|
|
# #
|
|
|
|
# EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#########################
|
|
|
|
# Link the runtime. The executable itself has to be copied,
|
|
|
|
# because it will resolve paths relative to its true location.
|
|
|
|
# Any symbolic links have to be replicated as well.
|
|
|
|
cd "${browser}"
|
|
|
|
find . -type d -exec mkdir -p "$out"/{} \;
|
|
|
|
|
|
|
|
find . -type f \( -not -name "${applicationName}" \) -exec ln -sT "${browser}"/{} "$out"/{} \;
|
|
|
|
|
|
|
|
find . -type f -name "${applicationName}" -print0 | while read -d $'\0' f; do
|
|
|
|
cp -P --no-preserve=mode,ownership "${browser}/$f" "$out/$f"
|
|
|
|
chmod a+rwx "$out/$f"
|
|
|
|
done
|
|
|
|
|
|
|
|
# fix links and absolute references
|
|
|
|
cd "${browser}"
|
|
|
|
|
|
|
|
find . -type l -print0 | while read -d $'\0' l; do
|
|
|
|
target="$(readlink "$l" | replace-literal -es -- "${browser}" "$out")"
|
|
|
|
ln -sfT "$target" "$out/$l"
|
|
|
|
done
|
|
|
|
|
|
|
|
# This will not patch binaries, only "text" files.
|
|
|
|
# Its there for the wrapper mostly.
|
|
|
|
cd "$out"
|
|
|
|
replace-literal -esfR -- "${browser}" "$out"
|
|
|
|
|
|
|
|
# create the wrapper
|
|
|
|
|
|
|
|
executablePrefix="$out${browser.execdir or "/bin"}"
|
|
|
|
executablePath="$executablePrefix/${applicationName}"
|
|
|
|
|
|
|
|
if [ ! -x "$executablePath" ]
|
|
|
|
then
|
|
|
|
echo "cannot find executable file \`${browser}${
|
2022-02-17 19:51:28 +00:00
|
|
|
browser.execdir or "/bin"
|
|
|
|
}/${applicationName}'"
|
2022-02-07 20:06:51 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -L "$executablePath" ]
|
|
|
|
then
|
|
|
|
# Careful here, the file at executablePath may already be
|
|
|
|
# a wrapper. That is why we postfix it with -old instead
|
|
|
|
# of -wrapped.
|
|
|
|
oldExe="$executablePrefix"/".${applicationName}"-old
|
|
|
|
mv "$executablePath" "$oldExe"
|
|
|
|
else
|
|
|
|
oldExe="$(readlink -v --canonicalize-existing "$executablePath")"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -x "${browser}${browser.execdir or "/bin"}/${applicationName}" ]
|
|
|
|
then
|
|
|
|
echo "cannot find executable file \`${browser}${
|
2022-02-17 19:51:28 +00:00
|
|
|
browser.execdir or "/bin"
|
|
|
|
}/${applicationName}'"
|
2022-02-07 20:06:51 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
makeWrapper "$oldExe" \
|
|
|
|
"$out${browser.execdir or "/bin"}/${applicationName}${nameSuffix}" \
|
|
|
|
--prefix LD_LIBRARY_PATH ':' "$libs" \
|
|
|
|
--suffix-each GTK_PATH ':' "$gtk_modules" \
|
|
|
|
--prefix PATH ':' "${xdg-utils}/bin" \
|
|
|
|
--suffix PATH ':' "$out${browser.execdir or "/bin"}" \
|
|
|
|
--set MOZ_APP_LAUNCHER "${applicationName}${nameSuffix}" \
|
|
|
|
--set MOZ_SYSTEM_DIR "$out/lib/waterfox" \
|
|
|
|
--set MOZ_LEGACY_PROFILES 1 \
|
|
|
|
--set MOZ_ALLOW_DOWNGRADE 1 \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--suffix XDG_DATA_DIRS : '${gnome.adwaita-icon-theme}/share' \
|
|
|
|
${
|
2022-02-17 19:51:28 +00:00
|
|
|
lib.optionalString forceWayland ''
|
|
|
|
--set MOZ_ENABLE_WAYLAND "1" \
|
|
|
|
''
|
|
|
|
}
|
2022-02-07 20:06:51 +00:00
|
|
|
#############################
|
|
|
|
# #
|
|
|
|
# END EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#############################
|
|
|
|
|
|
|
|
if [ -e "${browser}/share/icons" ]; then
|
|
|
|
mkdir -p "$out/share"
|
|
|
|
ln -s "${browser}/share/icons" "$out/share/icons"
|
|
|
|
else
|
|
|
|
for res in 16 32 48 64 128; do
|
|
|
|
mkdir -p "$out/share/icons/hicolor/''${res}x''${res}/apps"
|
|
|
|
icon=$( find "${browser}/lib/" -name "default''${res}.png" )
|
|
|
|
if [ -e "$icon" ]; then ln -s "$icon" \
|
|
|
|
"$out/share/icons/hicolor/''${res}x''${res}/apps/${
|
2022-02-17 19:51:28 +00:00
|
|
|
applicationName
|
|
|
|
}.png"
|
2022-02-07 20:06:51 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
install -D -t $out/share/applications $desktopItem/share/applications/*
|
|
|
|
|
|
|
|
mkdir -p $out/lib/waterfox/native-messaging-hosts
|
|
|
|
for ext in ${toString nativeMessagingHosts}; do
|
|
|
|
ln -sLt $out/lib/waterfox/native-messaging-hosts $ext/lib/waterfox/native-messaging-hosts/*
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p $out/lib/waterfox/pkcs11-modules
|
|
|
|
for ext in ${toString pkcs11Modules}; do
|
|
|
|
ln -sLt $out/lib/waterfox/pkcs11-modules $ext/lib/waterfox/pkcs11-modules/*
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#########################
|
|
|
|
# #
|
|
|
|
# EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#########################
|
|
|
|
# user customization
|
|
|
|
mkdir -p $out/lib/${libName}
|
|
|
|
|
|
|
|
# creating policies.json
|
|
|
|
mkdir -p "$out/lib/${libName}/distribution"
|
|
|
|
|
|
|
|
POL_PATH="$out/lib/${libName}/distribution/policies.json"
|
|
|
|
rm -f "$POL_PATH"
|
|
|
|
cat ${policiesJson} >> "$POL_PATH"
|
|
|
|
|
|
|
|
# preparing for autoconfig
|
|
|
|
mkdir -p "$out/lib/${libName}/defaults/pref"
|
|
|
|
|
|
|
|
echo 'pref("general.config.filename", "waterfox.cfg");' > "$out/lib/${
|
2022-02-17 19:51:28 +00:00
|
|
|
libName
|
|
|
|
}/defaults/pref/autoconfig.js"
|
2022-02-07 20:06:51 +00:00
|
|
|
echo 'pref("general.config.obscure_value", 0);' >> "$out/lib/${
|
2022-02-17 19:51:28 +00:00
|
|
|
libName
|
|
|
|
}/defaults/pref/autoconfig.js"
|
2022-02-07 20:06:51 +00:00
|
|
|
|
|
|
|
cat > "$out/lib/${libName}/waterfox.cfg" < ${waterfoxCfg}
|
|
|
|
|
|
|
|
mkdir -p $out/lib/${libName}/distribution/extensions
|
|
|
|
|
|
|
|
#############################
|
|
|
|
# #
|
|
|
|
# END EXTRA PREF CHANGES #
|
|
|
|
# #
|
|
|
|
#############################
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
libs =
|
|
|
|
lib.makeLibraryPath libs
|
|
|
|
+ ":"
|
|
|
|
+ lib.makeSearchPathOutput "lib" "lib64" libs;
|
|
|
|
gtk_modules = map (x: x + x.gtkModule) gtk_modules;
|
|
|
|
|
|
|
|
passthru = { unwrapped = browser; };
|
|
|
|
|
2022-02-17 19:51:28 +00:00
|
|
|
disallowedRequisites = [stdenv.cc];
|
2022-02-07 20:06:51 +00:00
|
|
|
|
|
|
|
meta =
|
|
|
|
browser.meta
|
|
|
|
// {
|
|
|
|
description = browser.meta.description;
|
|
|
|
priority = (browser.meta.priority or 0) - 1;
|
|
|
|
# prefer wrapper over the package
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
|
|
|
lib.makeOverridable wrapper
|