linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / fstrm / default.nix
blob46a7118cefe431a5865feba6f35c1347d5c10f13
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:
3 stdenv.mkDerivation rec {
4   pname = "fstrm";
5   version = "0.6.0";
7   src = fetchFromGitHub {
8     owner = "farsightsec";
9     repo = "fstrm";
10     rev = "v${version}";
11     sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm";
12   };
14   outputs = [ "bin" "out" "dev" ];
16   nativeBuildInputs = [ autoreconfHook pkg-config ];
17   buildInputs = [ libevent openssl ];
19   preBuild = ''
20     NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${openssl}/lib"
21   '';
23   doCheck = true;
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   };