firefox-extensions.sponsorblock: fix first-run check? not sure this is actually necessary w/ auto-updates disabled
This commit is contained in:
@@ -27,10 +27,12 @@ stdenvNoCC.mkDerivation rec {
|
||||
# but web shit is absolutely cursed and building from source requires a fucking PhD
|
||||
# (if you have one, feel free to share your nix package)
|
||||
#
|
||||
# NB: in source this is `alreadyInstalled: false`, but the build process hates Booleans or something
|
||||
# TODO(2024/03/23): this is broken (replacement doesn't match). but maybe not necessary anymore?
|
||||
# NB: source code looks like `alreadyInstalled: false`, the build process converts that to `alreadyInstalled:!1`.
|
||||
# XXX(2024/03/23): the original replacement doesn't match anymore.
|
||||
# generated code is liable to shuffle around, so make a best-effort to catch all variants.
|
||||
substituteInPlace js/*.js \
|
||||
--replace 'alreadyInstalled:!1' 'alreadyInstalled:!0'
|
||||
--replace 'alreadyInstalled:!1' 'alreadyInstalled:!0' \
|
||||
--replace '!r.default.local.alreadyInstalled' '!1'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
Reference in New Issue
Block a user