2024-11-01 01:07:41 +03:00
|
|
|
{
|
2024-11-16 03:34:54 +03:00
|
|
|
__findFile,
|
2024-11-04 04:37:29 +03:00
|
|
|
buildNpmPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
...
|
2024-11-13 04:41:01 +03:00
|
|
|
}: buildNpmPackage rec {
|
2024-11-04 04:37:29 +03:00
|
|
|
version = "4.9.96";
|
|
|
|
pname = "dark-reader";
|
2024-11-13 04:41:01 +03:00
|
|
|
npmDepsHash = "sha256-dSuCL8GZXiksqVQ+TypzOdAROn3q30ExaGCJu72GLyY=";
|
2024-11-04 04:37:29 +03:00
|
|
|
src = fetchFromGitHub {
|
2024-11-13 04:41:01 +03:00
|
|
|
hash = "sha256-2AYIFVTTMns1u0jKk3XeFuYdC1MfG9aOCMjAfZtlXuI=";
|
|
|
|
owner = "darkreader";
|
2024-11-04 04:37:29 +03:00
|
|
|
repo = "darkreader";
|
2024-11-13 04:41:01 +03:00
|
|
|
rev = "v${version}";
|
2024-11-04 04:37:29 +03:00
|
|
|
};
|
2024-11-13 04:41:01 +03:00
|
|
|
patches = [
|
2024-11-16 03:34:54 +03:00
|
|
|
<patch/darkreader/Policy.patch>
|
2024-11-13 04:41:01 +03:00
|
|
|
];
|
2024-11-04 04:37:29 +03:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp build/release/darkreader-firefox.xpi $out/latest.xpi
|
|
|
|
'';
|
2024-11-01 01:07:41 +03:00
|
|
|
}
|