nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 32 lines 753 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, openssl }: 2 3stdenv.mkDerivation rec { 4 pname = "fstrm"; 5 version = "0.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "farsightsec"; 9 repo = "fstrm"; 10 rev = "v${version}"; 11 sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm"; 12 }; 13 14 outputs = [ "bin" "out" "dev" ]; 15 16 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 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 stdenv.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