firefox-extensions.i-still-dont-care-about-cookies: init at 1.1.4

This commit is contained in:
Colin 2024-04-15 03:00:36 +00:00
parent e8745b4312
commit 62af314238
2 changed files with 39 additions and 0 deletions

View File

@ -65,6 +65,7 @@ let
'';
} // args')).overrideAttrs (final: upstream: {
passthru = (upstream.passthru or {}) // {
unwrapped = addon;
withAttrs = attrs: wrapAddon addon (args // attrs);
withPostPatch = postPatch: final.passthru.withAttrs { inherit postPatch; };
# given an addon, repackage it without some `perm`ission
@ -116,6 +117,7 @@ in (lib.makeScope newScope (self: with self; {
browserpass-extension = callPackage ./browserpass-extension { };
bypass-paywalls-clean = callPackage ./bypass-paywalls-clean { };
ctrl-shift-c-should-copy = callPackage ./ctrl-shift-c-should-copy { };
i-still-dont-care-about-cookies = callPackage ./i-still-dont-care-about-cookies { };
open-in-mpv = callPackage ./open-in-mpv { };
ether-metamask = fetchVersionedAddon rec {

View File

@ -0,0 +1,37 @@
{ stdenv
, lib
, fetchFromGitHub
, gitUpdater
, zip
}:
stdenv.mkDerivation rec {
pname = "i-still-dont-care-about-cookies";
version = "1.1.4";
src = fetchFromGitHub {
owner = "OhMyGuus";
repo = "I-Still-Dont-Care-About-Cookies";
rev = "v${version}";
hash = "sha256-bs9Looh2fKmsT0/3rS5Ldta4wlOUc75DpGxwBc7yRmg=";
};
nativeBuildInputs = [ zip ];
installPhase = ''
pushd src
zip -r $out ./*
popd
'';
passthru = {
extid = "idcac-pub@guus.ninja";
updateScript = gitUpdater {
rev-prefix = "v";
};
};
meta = {
homepage = "https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies";
description = ''Debloated fork of the extension "I don't care about cookies"'';
maintainer = with lib.maintainers; [ colinsane ];
};
}