2021-01-24 20:00:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText, erlang }:
|
2016-01-15 16:16:46 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
shell = drv: stdenv.mkDerivation {
|
2017-09-10 22:26:00 +01:00
|
|
|
name = "interactive-shell-${drv.name}";
|
|
|
|
buildInputs = [ drv ];
|
|
|
|
};
|
2016-01-15 16:16:46 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
pkg = self: stdenv.mkDerivation {
|
2016-01-15 16:16:46 +00:00
|
|
|
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 ];
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)/lib/erlang/lib" ];
|
2016-01-15 16:16:46 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WebDriver implementation in Erlang";
|
2021-01-23 17:15:07 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Quviq/webdrv";
|
2021-01-23 17:15:07 +00:00
|
|
|
maintainers = with lib.maintainers; [ ericbmerritt ];
|
2016-01-15 16:16:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
env = shell self;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2021-01-23 17:15:07 +00:00
|
|
|
in lib.fix pkg
|