summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/firefoxPlugins/ublock.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-01 17:19:26 +0200
committertv <tv@shackspace.de>2015-10-01 17:19:26 +0200
commit39d07cad033cf611d6cede6a6e13bdeaf9a6bd74 (patch)
treeb6ecd7f54577a1a422f3b9d96e4e7c645c71a276 /lass/5pkgs/firefoxPlugins/ublock.nix
parentcd61f94ba02c485327547ace8cd28a22e38bfe0f (diff)
parente97401da8a402698411b77e88b4a32d388c2ab6f (diff)
Merge remote-tracking branch 'mors/master'
Diffstat (limited to 'lass/5pkgs/firefoxPlugins/ublock.nix')
-rw-r--r--lass/5pkgs/firefoxPlugins/ublock.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/lass/5pkgs/firefoxPlugins/ublock.nix b/lass/5pkgs/firefoxPlugins/ublock.nix
new file mode 100644
index 000000000..29ef250e8
--- /dev/null
+++ b/lass/5pkgs/firefoxPlugins/ublock.nix
@@ -0,0 +1,31 @@
+{ fetchgit, stdenv, bash, python, zip }:
+
+stdenv.mkDerivation rec {
+ name = "ublock";
+ id = "{2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}";
+
+ src = fetchgit {
+ url = "https://github.com/chrisaljoudi/uBlock";
+ rev = "a70a50052a7914cbf86d46a725812b98434d8c70";
+ sha256 = "1qfzy79f8x01i33x0m95k833z1jgxjwb8wvlr6fj6id1kxfvzh77";
+ };
+
+ buildInputs = [
+ zip
+ python
+ ];
+
+ patchPhase = ''
+ substituteInPlace "tools/make-firefox.sh" \
+ --replace "/bin/bash" "${bash}/bin/bash"
+ '';
+
+ buildPhase = ''
+ tools/make-firefox.sh all
+ '';
+
+ installPhase = ''
+ mkdir -p $out/
+ cp dist/build/uBlock.firefox.xpi $out/${id}.xpi
+ '';
+}