nix-files/pkgs/additional/firefox-extensions/bypass-paywalls-clean/default.nix
Colin 68e3bc932f bypass-paywalls-clean: 3.2.5.0 -> 3.3.4.0; lay the foundation for updateScripts in this repo
note that the hash produced by the updateScript wasn't actually correct
(failed once i attempted to build it). hmm.
2023-09-22 10:13:56 +00:00

44 lines
952 B
Nix

{ lib
, fetchFromGitLab
, gitUpdater
, stdenv
, zip
}:
stdenv.mkDerivation rec {
pname = "bypass-paywalls-clean";
version = "3.3.4.0";
src = fetchFromGitLab {
owner = "magnolia1234";
repo = "bypass-paywalls-firefox-clean";
rev = "v${version}";
hash = "sha256-tgtdtTRLFgkJ7KuwLbLqrrImujKeeSWGEXc274G/YN0=";
};
patches = [
./0001-dont-show-options.patch
./0002-disable-auto-update.patch
./0003-disable-metrics.patch
];
nativeBuildInputs = [ zip ];
installPhase = ''
zip -r $out ./*
'';
passthru = {
extid = "magnolia@12.34";
updateScript = gitUpdater {
rev-prefix = "v";
};
};
meta = {
homepage = "https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean";
description = "Add-on allows you to read articles from (supported) sites that implement a paywall.";
license = with lib.licenses; [ mit ];
maintainer = with lib.maintainers; [ colinsane ];
};
}