summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-12-20 14:44:10 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-08-10 05:20:03 -0500
commita460545927f52a44efc8a99b3b0dc8d7f1d5d8d7 (patch)
tree5eba3060838fcfe50ca8b188c20c4e9072e94ba1 /pkgs/tools/misc
parent28360dd3b7e1a51148282d44624b6cbb35669646 (diff)
downloadnixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar.gz
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar.bz2
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar.lz
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar.xz
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.tar.zst
nixpkgs-a460545927f52a44efc8a99b3b0dc8d7f1d5d8d7.zip
fffuu: init at unstable-2018-05-26
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/fffuu/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fffuu/default.nix b/pkgs/tools/misc/fffuu/default.nix
new file mode 100644
index 00000000000..7b275220c19
--- /dev/null
+++ b/pkgs/tools/misc/fffuu/default.nix
@@ -0,0 +1,51 @@
+{ mkDerivation, haskellPackages, fetchFromGitHub, lib }:
+
+mkDerivation rec {
+  pname = "fffuu";
+  version = "unstable-2018-05-26";
+
+  src = fetchFromGitHub {
+    owner = "diekmann";
+    repo = "Iptables_Semantics";
+    rev = "e0a2516bd885708fce875023b474ae341cbdee29";
+    sha256 = "1qc7p44dqja6qrjbjdc2xn7n9v41j5v59sgjnxjj5k0mxp58y1ch";
+  };
+
+  postPatch = ''
+    substituteInPlace haskell_tool/fffuu.cabal \
+      --replace "containers >=0.5 && <0.6" "containers >= 0.6" \
+      --replace "optparse-generic >= 1.2.3 && < 1.3" "optparse-generic >= 1.2.3"
+  '';
+
+  preCompileBuildDriver = ''
+    cd haskell_tool
+  '';
+
+  isLibrary = false;
+
+  isExecutable = true;
+
+  # fails with sandbox
+  doCheck = false;
+
+  libraryHaskellDepends = with haskellPackages; [
+    base
+    containers
+    split
+    parsec
+    optparse-generic
+  ];
+
+  executableHaskellDepends = with haskellPackages; [ base ];
+
+  testHaskellDepends = with haskellPackages; [
+    tasty
+    tasty-hunit
+    tasty-golden
+  ];
+
+  description = "Fancy Formal Firewall Universal Understander";
+  homepage = https://github.com/diekmann/Iptables_Semantics/tree/master/haskell_tool;
+  license = lib.licenses.bsd2;
+  maintainers = [ lib.maintainers.marsam ];
+}