base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / misc / fffuu / default.nix
blob53f8397a6d450d76a56cb168f633ae2de8df2b82
1 { mkDerivation, haskellPackages, fetchFromGitHub, lib }:
3 mkDerivation {
4   pname = "fffuu";
5   version = "unstable-2018-05-26";
7   src = fetchFromGitHub {
8     owner = "diekmann";
9     repo = "Iptables_Semantics";
10     rev = "e0a2516bd885708fce875023b474ae341cbdee29";
11     sha256 = "1qc7p44dqja6qrjbjdc2xn7n9v41j5v59sgjnxjj5k0mxp58y1ch";
12   };
14   postPatch = ''
15     substituteInPlace haskell_tool/fffuu.cabal \
16       --replace "containers >=0.5 && <0.6" "containers >= 0.6" \
17       --replace "optparse-generic >= 1.2.3 && < 1.3" "optparse-generic >= 1.2.3" \
18       --replace "split >= 0.2.3 && <= 0.2.4" "split >= 0.2.3"
19   '';
21   preCompileBuildDriver = ''
22     cd haskell_tool
23   '';
25   isLibrary = false;
27   isExecutable = true;
29   # fails with sandbox
30   doCheck = false;
32   libraryHaskellDepends = with haskellPackages; [
33     base
34     containers
35     split
36     parsec
37     optparse-generic
38   ];
40   executableHaskellDepends = with haskellPackages; [ base ];
42   testHaskellDepends = with haskellPackages; [
43     tasty
44     tasty-hunit
45     tasty-golden
46   ];
48   description = "Fancy Formal Firewall Universal Understander";
49   homepage = "https://github.com/diekmann/Iptables_Semantics/tree/master/haskell_tool";
50   license = lib.licenses.bsd2;
51   maintainers = [ ];