1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "fstrm";
5 version = "0.6.1";
6
7 src = fetchFromGitHub {
8 owner = "farsightsec";
9 repo = "fstrm";
10 rev = "v${version}";
11 sha256 = "sha256-/WFP2g3Vuf/qaY8pprY8XFAlpEE+0SJUlFNWfa+7ZlE=";
12 };
13
14 outputs = [ "bin" "out" "dev" ];
15
16 nativeBuildInputs = [ autoreconfHook pkg-config ];
17 buildInputs = [ libevent openssl ];
18
19 preBuild = ''
20 NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${openssl}/lib"
21 '';
22
23 doCheck = true;
24
25 meta = with lib; {
26 description = "Frame Streams implementation in C";
27 homepage = "https://github.com/farsightsec/fstrm";
28 license = licenses.asl20;
29 platforms = platforms.unix;
30 };
31}
32