2014-07-08 19:38:55 +00:00
|
|
|
{ stdenv, lib, fetchgit, python, gyp, utillinux }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bud-${version}";
|
|
|
|
|
2014-09-16 04:31:56 +00:00
|
|
|
version = "0.32.0";
|
2014-07-08 19:38:55 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/indutny/bud.git";
|
2014-09-16 04:31:56 +00:00
|
|
|
rev = "1bfcc8c73c386f0ac12763949cd6c214058900a6";
|
|
|
|
sha256 = "1lfq6q026yawi0ps0gf0nl9a76qkpcc40r3v7zrj9cxzjb9fcymc";
|
2014-07-08 19:38:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python gyp
|
|
|
|
] ++ lib.optional stdenv.isLinux utillinux;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python ./gyp_bud -f make
|
|
|
|
make -C out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
cp out/Release/bud $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A TLS terminating proxy";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|