2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fstrm";
|
2021-04-10 09:36:00 +00:00
|
|
|
version = "0.6.1";
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "farsightsec";
|
|
|
|
repo = "fstrm";
|
|
|
|
rev = "v${version}";
|
2021-04-10 09:36:00 +00:00
|
|
|
sha256 = "sha256-/WFP2g3Vuf/qaY8pprY8XFAlpEE+0SJUlFNWfa+7ZlE=";
|
2017-02-22 14:03:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-08-29 11:21:06 +00:00
|
|
|
buildInputs = [ libevent openssl ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${openssl}/lib"
|
|
|
|
'';
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-02-22 14:03:21 +00:00
|
|
|
description = "Frame Streams implementation in C";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/farsightsec/fstrm";
|
2017-02-22 14:03:21 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|