Rework docs and add streamcontroller
This commit is contained in:
parent
5443370f16
commit
7c70384da2
12 changed files with 156 additions and 112 deletions
23
patches/darkreader.nix
Normal file
23
patches/darkreader.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# credits to Voronind for darkreader config https://github.com/voronind-com/nix/blob/main/home/program/firefox/default.nix
|
||||
{
|
||||
lib,
|
||||
stable,
|
||||
...
|
||||
}:
|
||||
stable.buildNpmPackage rec {
|
||||
version = "4.9.99";
|
||||
pname = "dark-reader";
|
||||
npmDepsHash = "sha256-m41HkwgbeRRmxJALQFJl/grYjjIqFOc47ltaesob1FA=";
|
||||
env.ESBUILD_BINARY_PATH = lib.getExe stable.esbuild;
|
||||
patches = [./darkeader.patch];
|
||||
src = stable.fetchFromGitHub {
|
||||
hash = "sha256-K375/4qOyE1Tp/T5V5uCGcNd1IVVbT1Pjdnq/8oRHj0=";
|
||||
owner = "darkreader";
|
||||
repo = "darkreader";
|
||||
rev = "v${version}";
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp build/release/darkreader-firefox.xpi $out/latest.xpi
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue