1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-03-15 22:07:05 +00:00
dotfiles/overlays/bypass-paywalls-clean.nix

30 lines
917 B
Nix
Raw Normal View History

2024-01-01 20:50:48 -05:00
inputs: _final: prev: {
# Based on:
# https://git.sr.ht/~rycee/nur-expressions/tree/master/item/pkgs/firefox-addons/default.nix#L34
2024-04-14 08:28:39 -04:00
bypass-paywalls-clean =
let
addonId = "magnolia@12.34";
in
prev.stdenv.mkDerivation rec {
pname = "bypass-paywalls-clean";
2025-03-07 18:19:35 -05:00
version = "4.0.6.0";
2025-03-04 07:50:47 -05:00
src = builtins.fetchGit {
2025-03-07 18:19:35 -05:00
url = "https://gitflic.ru/project/magnolia1234/bpc_uploads.git";
2025-03-04 07:50:47 -05:00
# owner = "magnolia1234";
# repo = "bpc_uploads";
2025-03-07 18:19:35 -05:00
ref = "main";
rev = "a3012f84bad9719760150832803f2ea07af8dae3";
# sha256 = "0000000000000000000000000000000000000000000000000000";
2025-03-04 07:50:47 -05:00
};
2024-04-14 08:28:39 -04:00
preferLocalBuild = true;
allowSubstitutes = true;
buildCommand = ''
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
mkdir -p "$dst"
install -v -m644 "${src}" "$dst/${addonId}.xpi"
'';
};
2024-01-01 20:50:48 -05:00
}