lol
1{ mkDerivation, haskellPackages, fetchFromGitHub, lib }:
2
3mkDerivation {
4 pname = "fffuu";
5 version = "unstable-2018-05-26";
6
7 src = fetchFromGitHub {
8 owner = "diekmann";
9 repo = "Iptables_Semantics";
10 rev = "e0a2516bd885708fce875023b474ae341cbdee29";
11 sha256 = "1qc7p44dqja6qrjbjdc2xn7n9v41j5v59sgjnxjj5k0mxp58y1ch";
12 };
13
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 '';
19
20 preCompileBuildDriver = ''
21 cd haskell_tool
22 '';
23
24 isLibrary = false;
25
26 isExecutable = true;
27
28 # fails with sandbox
29 doCheck = false;
30
31 libraryHaskellDepends = with haskellPackages; [
32 base
33 containers
34 split
35 parsec
36 optparse-generic
37 ];
38
39 executableHaskellDepends = with haskellPackages; [ base ];
40
41 testHaskellDepends = with haskellPackages; [
42 tasty
43 tasty-hunit
44 tasty-golden
45 ];
46
47 description = "Fancy Formal Firewall Universal Understander";
48 homepage = "https://github.com/diekmann/Iptables_Semantics/tree/master/haskell_tool";
49 license = lib.licenses.bsd2;
50 maintainers = [ lib.maintainers.marsam ];
51}