3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/fstrm/default.nix

33 lines
755 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:
2017-02-22 14:03:21 +00:00
stdenv.mkDerivation rec {
pname = "fstrm";
version = "0.6.0";
2017-02-22 14:03:21 +00:00
src = fetchFromGitHub {
owner = "farsightsec";
repo = "fstrm";
rev = "v${version}";
sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm";
2017-02-22 14:03:21 +00:00
};
outputs = [ "bin" "out" "dev" ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
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 lib; {
2017-02-22 14:03:21 +00:00
description = "Frame Streams implementation in C";
homepage = "https://github.com/farsightsec/fstrm";
2017-02-22 14:03:21 +00:00
license = licenses.asl20;
platforms = platforms.unix;
};
}