forked from mirrors/nixpkgs
Adding SlimerJS — script-driven Gecko browser
This commit is contained in:
parent
5de7170aa5
commit
5bbb1f77b2
|
@ -186,6 +186,12 @@
|
||||||
url = http://www.mozilla.org/MPL/MPL-1.1.html;
|
url = http://www.mozilla.org/MPL/MPL-1.1.html;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mpl20 = {
|
||||||
|
shortName = "MPL2.0";
|
||||||
|
fullName = "Mozilla Public License version 2.0";
|
||||||
|
url = https://www.mozilla.org/MPL/2.0;
|
||||||
|
};
|
||||||
|
|
||||||
openssl = {
|
openssl = {
|
||||||
shortName = "openssl";
|
shortName = "openssl";
|
||||||
fullName = "OpenSSL license";
|
fullName = "OpenSSL license";
|
||||||
|
|
38
pkgs/development/tools/slimerjs/default.nix
Normal file
38
pkgs/development/tools/slimerjs/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{stdenv, fetchurl, unzip, xulrunner, bash}:
|
||||||
|
let
|
||||||
|
s = # Generated upstream information
|
||||||
|
rec {
|
||||||
|
baseName="slimerjs";
|
||||||
|
version="0.8.3";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
hash="07gwiay2pbzyscn8gnwb8i92xffjahhinlswc1z4h8dbjk837d8h";
|
||||||
|
url="http://download.slimerjs.org/v0.8/slimerjs-0.8.3.zip";
|
||||||
|
sha256="07gwiay2pbzyscn8gnwb8i92xffjahhinlswc1z4h8dbjk837d8h";
|
||||||
|
};
|
||||||
|
buildInputs = [
|
||||||
|
unzip
|
||||||
|
];
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit (s) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
src = fetchurl {
|
||||||
|
inherit (s) url sha256;
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out"/{bin,share/doc/slimerjs,lib/slimerjs}
|
||||||
|
cp LICENSE README* "$out/share/doc/slimerjs"
|
||||||
|
cp * "$out/lib/slimerjs"
|
||||||
|
echo '#!${bash}/bin/bash' >> "$out/bin/slimerjs"
|
||||||
|
echo 'export SLIMERJSLAUNCHER=${xulrunner}/bin/xulrunner' >> "$out/bin/slimerjs"
|
||||||
|
echo "'$out/lib/slimerjs/slimerjs' \"\$@\"" >> "$out/bin/slimerjs"
|
||||||
|
chmod a+x "$out/bin/slimerjs"
|
||||||
|
'';
|
||||||
|
meta = {
|
||||||
|
inherit (s) version;
|
||||||
|
description = ''Gecko-based programmatically-driven browser'';
|
||||||
|
license = stdenv.lib.licenses.mpl20 ;
|
||||||
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
2
pkgs/development/tools/slimerjs/default.upstream
Normal file
2
pkgs/development/tools/slimerjs/default.upstream
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
url http://slimerjs.org/download.html
|
||||||
|
version_link '/slimerjs-[0-9.]+[.]zip$'
|
|
@ -3740,6 +3740,8 @@ let
|
||||||
|
|
||||||
simpleBuildTool = callPackage ../development/tools/build-managers/simple-build-tool { };
|
simpleBuildTool = callPackage ../development/tools/build-managers/simple-build-tool { };
|
||||||
|
|
||||||
|
slimerjs = callPackage ../development/tools/slimerjs {};
|
||||||
|
|
||||||
sloccount = callPackage ../development/tools/misc/sloccount { };
|
sloccount = callPackage ../development/tools/misc/sloccount { };
|
||||||
|
|
||||||
smatch = callPackage ../development/tools/analysis/smatch {
|
smatch = callPackage ../development/tools/analysis/smatch {
|
||||||
|
|
Loading…
Reference in a new issue