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