23 lines
531 B
Nix
23 lines
531 B
Nix
{
|
|
__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
|
|
'';
|
|
}
|