Dark Reader: Switch to patch again.

This commit is contained in:
Dmitry Voronin 2024-11-13 04:41:01 +03:00
parent 3ea5379cce
commit fb0050a0a6
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 80 additions and 81 deletions

View file

@ -1,25 +1,24 @@
{ {
buildNpmPackage, buildNpmPackage,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
... ...
}: buildNpmPackage { }: buildNpmPackage rec {
version = "4.9.96"; version = "4.9.96";
pname = "dark-reader"; pname = "dark-reader";
npmDepsHash = "sha256-e41PXGgoQkVSHQj6kElqXPhzc6irnr09ltBAPmcUjik="; npmDepsHash = "sha256-dSuCL8GZXiksqVQ+TypzOdAROn3q30ExaGCJu72GLyY=";
src = fetchFromGitHub { src = fetchFromGitHub {
hash = "sha256-mONoHe/Aphm6T5UcucxlzMLDaNnqIKd35uCAVoYlJ8s="; hash = "sha256-2AYIFVTTMns1u0jKk3XeFuYdC1MfG9aOCMjAfZtlXuI=";
# owner = "darkreader"; owner = "darkreader";
owner = "voronind-com";
repo = "darkreader"; repo = "darkreader";
# rev = "v${version}"; rev = "v${version}";
rev = "ddd532cb92594d2f4a73480dae6e6c024657dfe2";
}; };
# patches = [ patches = [
# (fetchpatch { (fetchpatch {
# url = "https://github.com/darkreader/darkreader/pull/12920.diff"; url = "https://github.com/darkreader/darkreader/compare/main...voronind-com:darkreader:main.diff";
# hash = "sha256-3r54SliCgxihGXzZDRklB0vB3bk9rc1H31PojAYn2Ic="; hash = "sha256-OqS6aY7PHHZvj7a0x1RI+1IpZxYXsqSia2ZeVM3XRZk=";
# }) })
# ]; ];
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp build/release/darkreader-firefox.xpi $out/latest.xpi cp build/release/darkreader-firefox.xpi $out/latest.xpi

View file

@ -5,74 +5,74 @@
... ...
} @args: { } @args: {
core = with pkgs; [ core = with pkgs; [
android-tools # Android adb tool. Can be used to connect to itself via wireless debugging. android-tools # Android adb tool. Can be used to connect to itself via wireless debugging.
bat # Pretty cat. bat # Pretty cat.
binwalk # Can analyze files for other files inside them. binwalk # Can analyze files for other files inside them.
bridge-utils # Network bridges. bridge-utils # Network bridges.
btop # System monitoring. btop # System monitoring.
chafa # CLI file manager. chafa # CLI file manager.
coreutils # UNIX Core utilities. coreutils # UNIX Core utilities.
cryptsetup # Filesystem encryption (LUKS). cryptsetup # Filesystem encryption (LUKS).
curl # Http client. curl # Http client.
ddrescue # Data rescue extractor. ddrescue # Data rescue extractor.
diffutils # Diff tool. diffutils # Diff tool.
dnsutils # NS utilities. dnsutils # NS utilities.
exiftool # Image info. exiftool # Image info.
fastfetch # Systeminfo summary. fastfetch # Systeminfo summary.
ffmpeg # Video/audio converter. ffmpeg # Video/audio converter.
file # Get general info about a file. file # Get general info about a file.
findutils # Find tool. findutils # Find tool.
gawk # Awk. gawk # Awk.
gcc # C compiler. gcc # C compiler.
gdu # TUI storage analyzer. gdu # TUI storage analyzer.
git # Version control system. git # Version control system.
gnugrep # Grep. gnugrep # Grep.
gnumake # Make. gnumake # Make.
gnused # Sed. gnused # Sed.
gnutar # Tar. gnutar # Tar.
gzip # Fast compression. gzip # Fast compression.
htop # System monitors. htop # System monitors.
imagemagick # Image converter and transformation tool. imagemagick # Image converter and transformation tool.
inetutils # Things like FTP. inetutils # Things like FTP.
iputils # IP tools. iputils # IP tools.
jq # Json parser. jq # Json parser.
lm_sensors # Hardware sensors, like temperature and fan speeds. lm_sensors # Hardware sensors, like temperature and fan speeds.
lshw # Detailed hardware info tool. lshw # Detailed hardware info tool.
lsof # Find current file users. lsof # Find current file users.
ltex-ls # Latex LSP for neovim spellcheck. ltex-ls # Latex LSP for neovim spellcheck.
man # App to read manuals. man # App to read manuals.
neovim # Text editor. neovim # Text editor.
nmap # Network scanning. nmap # Network scanning.
nvtop # Top for GPU. nvtopPackages.full # Top for GPU.
openssh # Ssh client. openssh # Ssh client.
parallel # Run programs in parallel. parallel # Run programs in parallel.
parted # CLI disk partition tool. parted # CLI disk partition tool.
powertop # Monitor power usage. powertop # Monitor power usage.
pv # IO progress bar. pv # IO progress bar.
radare2 # Hex editor. radare2 # Hex editor.
ripgrep # Better grep. ripgrep # Better grep.
rsync # File copy tool. rsync # File copy tool.
smartmontools # S.M.A.R.T. tools. smartmontools # S.M.A.R.T. tools.
sqlite # Serverless file-based database engine. sqlite # Serverless file-based database engine.
sshfs # Ssh client. sshfs # Ssh client.
testdisk # Apps to recover data from drives. testdisk # Apps to recover data from drives.
tmux # Terminal multiplexor. tmux # Terminal multiplexor.
tree # Show directory stricture as a tree. tree # Show directory stricture as a tree.
tree-sitter # A parser generator tool and an incremental parsing library. tree-sitter # A parser generator tool and an incremental parsing library.
tun2socks # Use proxy as a vpn. tun2socks # Use proxy as a vpn.
unzip # Zip archive/unarchive tools. unzip # Zip archive/unarchive tools.
usbutils # Usb utilities like udiskctl. usbutils # Usb utilities like udiskctl.
utillinux # Common Linux utilities. utillinux # Common Linux utilities.
ventoy # Boot multiple ISO/images from a single USB stick. ventoy # Boot multiple ISO/images from a single USB stick.
wcurl # CLI http client. wcurl # CLI http client.
wireguard-tools # Tools to work with Wireguard. wireguard-tools # Tools to work with Wireguard.
xray # Proxy. xray # Proxy.
xz # Archive and compression tools. xz # Archive and compression tools.
yazi # File manager. yazi # File manager.
yt-dlp # Video downloader. yt-dlp # Video downloader.
zapret # FRKN. zapret # FRKN.
zip # Zip utility. zip # Zip utility.
zmap # Network analyzer. zmap # Network analyzer.
# (pkgs.callPackage ./ytdlp {}) # Youtube downloader bin package. # (pkgs.callPackage ./ytdlp {}) # Youtube downloader bin package.
(pkgs.callPackage ./yamusicdownload { }) # Yandex music downloader. (pkgs.callPackage ./yamusicdownload { }) # Yandex music downloader.