nixpkgs/pkgs/tools/networking/bud/default.nix
Charles Strahan 5668ac61e9 bud: new package
This adds `bud`, a TLS terminating proxy.
2014-07-27 14:23:43 +02:00

34 lines
754 B
Nix

{ stdenv, lib, fetchgit, python, gyp, utillinux }:
stdenv.mkDerivation rec {
name = "bud-${version}";
version = "0.25.0";
src = fetchgit {
url = "https://github.com/indutny/bud.git";
rev = "f65b9c3531dac1a5b3c962e01f3bed1d41ab5621";
sha256 = "000wwc88hsf6ccz8wxjn2af6l0nxm6a2fcad71xw35ymmdp9n5xg";
};
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 ];
};
}