webdriver: init at 0.0.0+build.18.7ceaf1f
This commit is contained in:
parent
acf4bfd585
commit
e8933f6a4e
|
@ -7,5 +7,8 @@ let
|
|||
|
||||
buildRebar3 = callPackage ./build-rebar3.nix {};
|
||||
buildHex = callPackage ./build-hex.nix {};
|
||||
|
||||
## Non hex packages
|
||||
webdriver = callPackage ./webdriver {};
|
||||
};
|
||||
in self // self.hex
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
{stdenv, fetchFromGitHub, writeText, erlang }:
|
||||
|
||||
let
|
||||
shell = drv: stdenv.mkDerivation {
|
||||
name = "interactive-shell-${drv.name}";
|
||||
buildInputs = [ drv ];
|
||||
};
|
||||
|
||||
pkg = self: stdenv.mkDerivation rec {
|
||||
name = "webdriver";
|
||||
version = "0.0.0+build.18.7ceaf1f";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Quviq";
|
||||
repo = "webdrv";
|
||||
rev = "7ceaf1f67d834e841ca0133b4bf899a9fa2db6bb";
|
||||
sha256 = "1pq6pmlr6xb4hv2fvmlrvzd8c70kdcidlgjv4p8n9pwvkif0cb87";
|
||||
};
|
||||
|
||||
setupHook = writeText "setupHook.sh" ''
|
||||
addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
|
||||
'';
|
||||
|
||||
buildInputs = [ erlang ];
|
||||
|
||||
installFlags = "PREFIX=$(out)/lib/erlang/lib";
|
||||
|
||||
meta = {
|
||||
description = "WebDriver implementation in Erlang";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
homepage = "https://github.com/Quviq/webdrv";
|
||||
maintainers = with stdenv.lib.maintainers; [ ericbmerritt ];
|
||||
};
|
||||
|
||||
passthru = {
|
||||
env = shell self;
|
||||
};
|
||||
|
||||
};
|
||||
in stdenv.lib.fix pkg
|
Loading…
Reference in New Issue