1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/networking/bud/default.nix
2016-06-03 17:17:08 +03:00

35 lines
748 B
Nix

{ stdenv, lib, fetchgit, python, gyp, utillinux }:
stdenv.mkDerivation rec {
name = "bud-${version}";
version = "0.34.1";
src = fetchgit {
url = "https://github.com/indutny/bud.git";
rev = "b112852c9667632f692d2ce3dcd9a8312b61155a";
sha256 = "08yr6l4lc2m6rng06253fcaznf6sq0v053wfr8bbym42c32z0xdh";
};
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 = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
};
}