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

@ -43,7 +43,7 @@
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.