2014-07-08 21:38:55 +02:00
|
|
|
{ stdenv, lib, fetchgit, python, gyp, utillinux }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bud-${version}";
|
|
|
|
|
2014-09-16 06:31:56 +02:00
|
|
|
version = "0.32.0";
|
2014-07-08 21:38:55 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/indutny/bud.git";
|
2014-09-16 06:31:56 +02:00
|
|
|
rev = "1bfcc8c73c386f0ac12763949cd6c214058900a6";
|
|
|
|
sha256 = "1lfq6q026yawi0ps0gf0nl9a76qkpcc40r3v7zrj9cxzjb9fcymc";
|
2014-07-08 21:38:55 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|