1{ stdenv, lib, fetchgit, python, gyp, utillinux }:
2
3stdenv.mkDerivation rec {
4 name = "bud-${version}";
5
6 version = "0.34.1";
7
8 src = fetchgit {
9 url = "https://github.com/indutny/bud.git";
10 rev = "b112852c9667632f692d2ce3dcd9a8312b61155a";
11 sha256 = "1acvsx71fmmqhqf00ria3rbq453476x1jx0x8rp6nds5nx2mi0np";
12 };
13
14 buildInputs = [
15 python gyp
16 ] ++ lib.optional stdenv.isLinux utillinux;
17
18 buildPhase = ''
19 python ./gyp_bud -f make
20 make -C out
21 '';
22
23 installPhase = ''
24 ensureDir $out/bin
25 cp out/Release/bud $out/bin
26 '';
27
28 meta = with lib; {
29 description = "A TLS terminating proxy";
30 license = licenses.mit;
31 platforms = with platforms; linux;
32 maintainers = with maintainers; [ cstrahan ];
33 };
34}