summary refs log tree commit diff
path: root/pkgs/development/libraries/boxfort
diff options
context:
space:
mode:
authorGuillaume Pagnoux <gpagnoux@gmail.com>2019-10-09 14:44:24 +0200
committerGuillaume Pagnoux <gpagnoux@gmail.com>2019-10-09 14:48:55 +0200
commitb76e290d803825137fd10648ce14e04cb8512fa8 (patch)
treebf4ec73d59c1f83d245db5a30c79f58986ab655b /pkgs/development/libraries/boxfort
parente2c8c1aa1e988d0521f5d16c2dfbea05daf279cc (diff)
downloadnixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar.gz
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar.bz2
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar.lz
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar.xz
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.tar.zst
nixpkgs-b76e290d803825137fd10648ce14e04cb8512fa8.zip
boxfort: init at unstable-2019-09-19
Signed-off-by: Guillaume Pagnoux <gpagnoux@gmail.com>
Diffstat (limited to 'pkgs/development/libraries/boxfort')
-rw-r--r--pkgs/development/libraries/boxfort/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/libraries/boxfort/default.nix b/pkgs/development/libraries/boxfort/default.nix
new file mode 100644
index 00000000000..95c1afd090f
--- /dev/null
+++ b/pkgs/development/libraries/boxfort/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchFromGitHub, cmake, pkg-config, gettext, libcsptr, dyncall
+, nanomsg, python37Packages }:
+
+stdenv.mkDerivation rec {
+  version = "unstable-2019-09-19";
+  pname = "boxfort";
+
+  src = fetchFromGitHub {
+    owner = "Snaipe";
+    repo = "BoxFort";
+    rev = "926bd4ce968592dbbba97ec1bb9aeca3edf29b0d";
+    sha256 = "0mzy4f8qij6ckn5578y3l4rni2470pdkjy5xww7ak99l1kh3p3v6";
+  };
+
+  enableParallelBuilding = true;
+
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  buildInputs = [
+    dyncall
+    gettext
+    libcsptr
+    nanomsg
+  ];
+
+  checkInputs = with python37Packages; [ cram ];
+
+  cmakeFlags = [ "-DBXF_FORK_RESILIENCE=OFF" ];
+
+  doCheck = true;
+  preCheck = ''
+    export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
+  '';
+
+  outputs = [ "dev" "out" ];
+
+  meta = with stdenv.lib; {
+    description = "Convenient & cross-platform sandboxing C library";
+    homepage = "https://github.com/Snaipe/BoxFort";
+    license = licenses.mit;
+    maintainers = with maintainers; [
+      thesola10
+      Yumasi
+    ];
+    platforms = platforms.unix;
+  };
+}