mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
project-wide: nixdirfmt
This commit is contained in:
parent
aa1f72eeca
commit
53f9ff3730
12 changed files with 70 additions and 79 deletions
|
|
@ -30,23 +30,23 @@ let
|
|||
|
||||
screenstub = unstable.callPackage ./screenstub { };
|
||||
|
||||
buildFirefoxXpiAddon = { pname, version, addonId, url, sha256, meta, ... }:
|
||||
buildFirefoxXpiAddon = { pname, version, addonId, url, sha256, meta, ... }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "${pname}-${version}";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
inherit meta;
|
||||
inherit meta;
|
||||
|
||||
src = builtins.fetchurl { inherit url sha256; };
|
||||
src = builtins.fetchurl { inherit url sha256; };
|
||||
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
|
||||
buildCommand = ''
|
||||
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||
mkdir -p "$dst"
|
||||
install -v -m644 "$src" "$dst/${addonId}.xpi"
|
||||
'';
|
||||
};
|
||||
buildCommand = ''
|
||||
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||
mkdir -p "$dst"
|
||||
install -v -m644 "$src" "$dst/${addonId}.xpi"
|
||||
'';
|
||||
};
|
||||
|
||||
ff-sponsorblock = super.callPackage ./ff-sponsorblock { };
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
{ lib, buildFirefoxXpiAddon, ... }:
|
||||
|
||||
buildFirefoxXpiAddon {
|
||||
pname = "ff-sponsorblock";
|
||||
version = "2.0.13.1";
|
||||
sha256 = "0lq47xnpqqfa8md6l4f0rxxz1cz7hihv5grpqh3vdbvnsc90i6f9";
|
||||
addonId = "{99e84f4-839b-4494-b4ad-12ab59c51fbd}";
|
||||
url = "https://addons.mozilla.org/firefox/downloads/file/3748692/sponsorblock_skip_sponsorships_on_youtube-2.0.13.1-an+fx.xpi";
|
||||
pname = "ff-sponsorblock";
|
||||
version = "2.0.13.1";
|
||||
sha256 = "0lq47xnpqqfa8md6l4f0rxxz1cz7hihv5grpqh3vdbvnsc90i6f9";
|
||||
addonId = "{99e84f4-839b-4494-b4ad-12ab59c51fbd}";
|
||||
url =
|
||||
"https://addons.mozilla.org/firefox/downloads/file/3748692/sponsorblock_skip_sponsorships_on_youtube-2.0.13.1-an+fx.xpi";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sponsor.ajay.app/";
|
||||
description = "Easily skip YouTube video sponsors. When you visit a YouTube video, the extension will check the database for reported sponsors and automatically skip known sponsors. You can also report sponsors in videos.";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
meta = with lib; {
|
||||
homepage = "https://sponsor.ajay.app/";
|
||||
description =
|
||||
"Easily skip YouTube video sponsors. When you visit a YouTube video, the extension will check the database for reported sponsors and automatically skip known sponsors. You can also report sponsors in videos.";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue