about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/fstrm
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/fstrm')
-rw-r--r--nixpkgs/pkgs/development/libraries/fstrm/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/fstrm/default.nix b/nixpkgs/pkgs/development/libraries/fstrm/default.nix
new file mode 100644
index 000000000000..372cb50d05cf
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/fstrm/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, openssl }:
+
+stdenv.mkDerivation rec {
+  name = "fstrm-${version}";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "farsightsec";
+    repo = "fstrm";
+    rev = "v${version}";
+    sha256 = "11i8b3wy6j3z3fcv816xccxxlrfkczdr8bm2gnan6yv4ppbji4ny";
+  };
+
+  outputs = [ "bin" "out" "dev" ];
+
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+  buildInputs = [ libevent openssl ];
+
+  preBuild = ''
+    NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -L${openssl}/lib"
+  '';
+
+  doCheck = true;
+
+  meta = with stdenv.lib; {
+    description = "Frame Streams implementation in C";
+    homepage = https://github.com/farsightsec/fstrm;
+    license = licenses.asl20;
+    platforms = platforms.unix;
+  };
+}
+