nixpkgs/pkgs/development/beam-modules/webdriver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
973 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, writeText, erlang }:
let
shell = drv: stdenv.mkDerivation {
2017-09-10 21:26:00 +00:00
name = "interactive-shell-${drv.name}";
buildInputs = [ drv ];
};
2019-08-13 21:52:01 +00:00
pkg = self: stdenv.mkDerivation {
pname = "webdriver";
version = "0.pre+unstable=2015-02-08";
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" ];
meta = {
description = "WebDriver implementation in Erlang";
2021-01-23 17:15:07 +00:00
license = lib.licenses.mit;
homepage = "https://github.com/Quviq/webdrv";
2021-01-23 17:15:07 +00:00
maintainers = with lib.maintainers; [ ericbmerritt ];
};
passthru = {
env = shell self;
};
};
2021-01-23 17:15:07 +00:00
in lib.fix pkg