nixpkgs/pkgs/tools/networking/bud/default.nix

39 lines
851 B
Nix
Raw Normal View History

2021-03-25 10:10:31 +00:00
{ stdenv, lib, fetchgit, python2, util-linux }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "bud";
2015-01-14 02:54:19 +00:00
version = "0.34.1";
src = fetchgit {
url = "https://github.com/indutny/bud.git";
2015-01-14 02:54:19 +00:00
rev = "b112852c9667632f692d2ce3dcd9a8312b61155a";
sha256 = "08yr6l4lc2m6rng06253fcaznf6sq0v053wfr8bbym42c32z0xdh";
};
2021-03-25 10:10:31 +00:00
nativeBuildInputs = [
python2 python2.pkgs.gyp
2020-11-24 15:29:28 +00:00
] ++ lib.optional stdenv.isLinux util-linux;
2018-01-09 03:14:48 +00:00
2021-03-25 10:10:31 +00:00
strictDeps = true;
buildPhase = ''
python ./gyp_bud -f make
make -C out
'';
installPhase = ''
2018-01-09 03:14:48 +00:00
mkdir -p $out/bin
cp out/Release/bud $out/bin
'';
meta = with lib; {
description = "A TLS terminating proxy";
license = licenses.mit;
platforms = platforms.linux;
# Does not build on aarch64-linux.
badPlatforms = [ "aarch64-linux" ];
maintainers = with maintainers; [ cstrahan ];
};
}