about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-08-10 09:52:31 -0500
committerGitHub <noreply@github.com>2019-08-10 09:52:31 -0500
commit1c7cf9493cf020acbff34dadf858312f46b26da1 (patch)
tree53b8ab70169b54a4211a3a35529161f38b3f577c
parenta4d6a3f724979bba7bf0adf7fc1f0584f9094497 (diff)
parenta460545927f52a44efc8a99b3b0dc8d7f1d5d8d7 (diff)
downloadnixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar.gz
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar.bz2
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar.lz
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar.xz
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.tar.zst
nixlib-1c7cf9493cf020acbff34dadf858312f46b26da1.zip
Merge pull request #52588 from marsam/init-fffuu
fffuu: init at unstable-2018-05-26
-rw-r--r--pkgs/tools/misc/fffuu/default.nix51
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fffuu/default.nix b/pkgs/tools/misc/fffuu/default.nix
new file mode 100644
index 000000000000..7b275220c197
--- /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 ];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1ce2602266d1..bd2f71c28ae2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9389,6 +9389,8 @@ in
 
   flootty = callPackage ../development/tools/flootty { };
 
+  fffuu = haskell.lib.justStaticExecutables (haskellPackages.callPackage ../tools/misc/fffuu { });
+
   flow = callPackage ../development/tools/analysis/flow {
     inherit (darwin.apple_sdk.frameworks) CoreServices;
   };