11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
18 sha256 = "sha256-RHd9PqcSkO9FYi5x+09TN7c4fKGf5pCPXjoCUXZ2mvA=";
22 buildInputs = [ zip ];
30 test -f omni.ja || zip omni.ja -r */
34 strip-nondeterminism --type zip omni.ja
35 mkdir -p "$out"/{bin,share/doc/slimerjs,lib/slimerjs}
36 cp LICENSE README* "$out/share/doc/slimerjs"
37 cp -r * "$out/lib/slimerjs"
38 echo '#!${bash}/bin/bash' >> "$out/bin/slimerjs"
39 echo 'export SLIMERJSLAUNCHER=${firefox}/bin/firefox' >> "$out/bin/slimerjs"
40 echo "'$out/lib/slimerjs/slimerjs' \"\$@\"" >> "$out/bin/slimerjs"
41 chmod a+x "$out/bin/slimerjs"
42 sed -e 's@MaxVersion=[3456][0-9][.]@MaxVersion=99.@' -i "$out/lib/slimerjs/application.ini"
46 description = "Gecko-based programmatically-driven browser";
47 mainProgram = "slimerjs";
48 license = licenses.mpl20;
49 maintainers = with maintainers; [ raskin ];
50 platforms = platforms.linux;