2020-11-24 15:29:28 +00:00
|
|
|
{ stdenv, lib, fetchgit, python, gyp, util-linux }:
|
2014-07-08 20:38:55 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bud";
|
2014-07-08 20:38:55 +01:00
|
|
|
|
2015-01-14 02:54:19 +00:00
|
|
|
version = "0.34.1";
|
2014-07-08 20:38:55 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/indutny/bud.git";
|
2015-01-14 02:54:19 +00:00
|
|
|
rev = "b112852c9667632f692d2ce3dcd9a8312b61155a";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "08yr6l4lc2m6rng06253fcaznf6sq0v053wfr8bbym42c32z0xdh";
|
2014-07-08 20:38:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python gyp
|
2020-11-24 15:29:28 +00:00
|
|
|
] ++ lib.optional stdenv.isLinux util-linux;
|
2018-01-09 03:14:48 +00:00
|
|
|
|
2014-07-08 20:38:55 +01:00
|
|
|
buildPhase = ''
|
|
|
|
python ./gyp_bud -f make
|
|
|
|
make -C out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-01-09 03:14:48 +00:00
|
|
|
mkdir -p $out/bin
|
2014-07-08 20:38:55 +01:00
|
|
|
cp out/Release/bud $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A TLS terminating proxy";
|
|
|
|
license = licenses.mit;
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2018-12-10 02:28:30 +00:00
|
|
|
# Does not build on aarch64-linux.
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2014-07-08 20:38:55 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|