This repository has no description
577 B
28 lines
1{ fetchgit, stdenv, bash, zip }:
2
3stdenv.mkDerivation rec {
4 name = "noscript";
5 id = "{73a6fe31-595d-460b-a920-fcc0f8843232}";
6
7 src = fetchgit {
8 url = "https://github.com/avian2/noscript";
9 rev = "c900a079793868bb080ab1e23522d29dc121b4c6";
10 sha256 = "1y06gh5a622yrsx0h7v92qnvdi97i54ln09zc1lvk8x430z5bdly";
11 };
12
13 buildInputs = [ zip ];
14
15 patchPhase = ''
16 substituteInPlace "version.sh" \
17 --replace "/bin/bash" "${bash}/bin/bash"
18 '';
19
20 buildPhase = ''
21 ./makexpi.sh
22 '';
23
24 installPhase = ''
25 mkdir -p $out/
26 cp *.xpi $out/${id}.xpi
27 '';
28}