nix/package/darkreader/default.nix

24 lines
524 B
Nix
Raw Normal View History

{
__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 = [
<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
'';
}