2023-07-18 20:21:48 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
2023-09-22 10:11:44 +00:00
|
|
|
, gitUpdater
|
2023-07-18 20:21:48 +00:00
|
|
|
, stdenv
|
|
|
|
, zip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bypass-paywalls-clean";
|
2023-10-02 07:48:01 +00:00
|
|
|
version = "3.3.6.0";
|
2023-07-18 20:21:48 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "magnolia1234";
|
|
|
|
repo = "bypass-paywalls-firefox-clean";
|
|
|
|
rev = "v${version}";
|
2023-10-02 07:48:01 +00:00
|
|
|
hash = "sha256-5v5jsOdTMVnCFXBnRXrbkOrevoxpf9SoEpEsl9Pe7j8=";
|
2023-07-18 20:21:48 +00:00
|
|
|
};
|
|
|
|
|
2023-07-18 22:38:30 +00:00
|
|
|
patches = [
|
|
|
|
./0001-dont-show-options.patch
|
|
|
|
./0002-disable-auto-update.patch
|
|
|
|
./0003-disable-metrics.patch
|
|
|
|
];
|
|
|
|
|
2023-08-07 10:23:38 +00:00
|
|
|
nativeBuildInputs = [ zip ];
|
|
|
|
|
2023-07-18 20:21:48 +00:00
|
|
|
installPhase = ''
|
2023-08-07 10:23:38 +00:00
|
|
|
zip -r $out ./*
|
2023-07-18 20:21:48 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
extid = "magnolia@12.34";
|
2023-09-22 10:11:44 +00:00
|
|
|
updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2023-07-18 20:21:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|