2017-08-29 11:21:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, openssl }:
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fstrm";
|
2019-10-21 18:32:10 +00:00
|
|
|
version = "0.6.0";
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "farsightsec";
|
|
|
|
repo = "fstrm";
|
|
|
|
rev = "v${version}";
|
2019-10-21 18:32:10 +00:00
|
|
|
sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm";
|
2017-02-22 14:03:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|