evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / beam-modules / webdriver / default.nix
blobf8abc24c14edddae6eaa3683ecb86f30c0736c2d
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   writeText,
6   erlang,
7 }:
9 let
10   shell =
11     drv:
12     stdenv.mkDerivation {
13       name = "interactive-shell-${drv.name}";
14       buildInputs = [ drv ];
15     };
17   pkg =
18     self:
19     stdenv.mkDerivation {
20       pname = "webdriver";
21       version = "0.pre+unstable=2015-02-08";
23       src = fetchFromGitHub {
24         owner = "Quviq";
25         repo = "webdrv";
26         rev = "7ceaf1f67d834e841ca0133b4bf899a9fa2db6bb";
27         sha256 = "1pq6pmlr6xb4hv2fvmlrvzd8c70kdcidlgjv4p8n9pwvkif0cb87";
28       };
30       setupHook = writeText "setupHook.sh" ''
31         addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
32       '';
34       buildInputs = [ erlang ];
36       installFlags = [ "PREFIX=$(out)/lib/erlang/lib" ];
38       meta = {
39         description = "WebDriver implementation in Erlang";
40         license = lib.licenses.mit;
41         homepage = "https://github.com/Quviq/webdrv";
42         maintainers = with lib.maintainers; [ ericbmerritt ];
43       };
45       passthru = {
46         env = shell self;
47       };
49     };
51 lib.fix pkg