2017-08-29 12:21:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, openssl }:
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fstrm-${version}";
|
2018-05-14 16:13:57 +01:00
|
|
|
version = "0.4.0";
|
2017-02-22 14:03:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "farsightsec";
|
|
|
|
repo = "fstrm";
|
|
|
|
rev = "v${version}";
|
2018-05-14 16:13:57 +01:00
|
|
|
sha256 = "11i8b3wy6j3z3fcv816xccxxlrfkczdr8bm2gnan6yv4ppbji4ny";
|
2017-02-22 14:03:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-08-29 12:21:06 +01: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";
|
|
|
|
homepage = https://github.com/farsightsec/fstrm;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|