dotfiles/overlays/bypass-paywalls-clean.nix

23 lines
624 B
Nix
Raw Normal View History

2024-01-02 01:50:48 +00: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 12:28:39 +00:00
bypass-paywalls-clean =
let
addonId = "magnolia@12.34";
in
prev.stdenv.mkDerivation rec {
pname = "bypass-paywalls-clean";
2024-05-03 21:26:56 +00:00
version = "3.6.6.0";
2024-04-18 01:03:41 +00:00
src = inputs.bypass-paywalls-clean;
2024-04-14 12:28:39 +00: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-02 01:50:48 +00:00
}