summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/firefoxPlugins/noscript.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-09-26 12:12:50 +0200
committerlassulus <lass@aidsballs.de>2015-09-26 12:12:50 +0200
commit0d806f61d2709f0ff8bf03ee431839035215e689 (patch)
treecb8fda99b540ca280ef5b45319f8d79e786039b0 /lass/5pkgs/firefoxPlugins/noscript.nix
parent895971f21490222e7d4060d5ec1a6bb4395ff595 (diff)
lass: add firefoxPatched + firefoxPlugins
Diffstat (limited to 'lass/5pkgs/firefoxPlugins/noscript.nix')
-rw-r--r--lass/5pkgs/firefoxPlugins/noscript.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/lass/5pkgs/firefoxPlugins/noscript.nix b/lass/5pkgs/firefoxPlugins/noscript.nix
new file mode 100644
index 000000000..67a00a1b2
--- /dev/null
+++ b/lass/5pkgs/firefoxPlugins/noscript.nix
@@ -0,0 +1,28 @@
+{ fetchgit, stdenv, bash, zip }:
+
+stdenv.mkDerivation rec {
+ name = "noscript";
+ id = "{73a6fe31-595d-460b-a920-fcc0f8843232}";
+
+ src = fetchgit {
+ url = "https://github.com/avian2/noscript";
+ rev = "c900a079793868bb080ab1e23522d29dc121b4c6";
+ sha256 = "1y06gh5a622yrsx0h7v92qnvdi97i54ln09zc1lvk8x430z5bdly";
+ };
+
+ buildInputs = [ zip ];
+
+ patchPhase = ''
+ substituteInPlace "version.sh" \
+ --replace "/bin/bash" "${bash}/bin/bash"
+ '';
+
+ buildPhase = ''
+ ./makexpi.sh
+ '';
+
+ installPhase = ''
+ mkdir -p $out/
+ cp *.xpi $out/${id}.xpi
+ '';
+}