depot/third_party/nixpkgs/pkgs/development/libraries/fstrm/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

32 lines
755 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:
stdenv.mkDerivation rec {
pname = "fstrm";
version = "0.6.0";
src = fetchFromGitHub {
owner = "farsightsec";
repo = "fstrm";
rev = "v${version}";
sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm";
};
outputs = [ "bin" "out" "dev" ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libevent openssl ];
preBuild = ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${openssl}/lib"
'';
doCheck = true;
meta = with lib; {
description = "Frame Streams implementation in C";
homepage = "https://github.com/farsightsec/fstrm";
license = licenses.asl20;
platforms = platforms.unix;
};
}