This repository has no description
652 B
31 lines
1{ fetchgit, stdenv, bash, python, zip }:
2
3stdenv.mkDerivation rec {
4 name = "ublock";
5 id = "{2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}";
6
7 src = fetchgit {
8 url = "https://github.com/chrisaljoudi/uBlock";
9 rev = "a70a50052a7914cbf86d46a725812b98434d8c70";
10 sha256 = "1qfzy79f8x01i33x0m95k833z1jgxjwb8wvlr6fj6id1kxfvzh77";
11 };
12
13 buildInputs = [
14 zip
15 python
16 ];
17
18 patchPhase = ''
19 substituteInPlace "tools/make-firefox.sh" \
20 --replace "/bin/bash" "${bash}/bin/bash"
21 '';
22
23 buildPhase = ''
24 tools/make-firefox.sh all
25 '';
26
27 installPhase = ''
28 mkdir -p $out/
29 cp dist/build/uBlock.firefox.xpi $out/${id}.xpi
30 '';
31}