Files
nixpkgs/pkgs/tools/misc/fffuu/default.nix
2026-08-15 16:55:07 -04:00

58 lines
1.2 KiB
Nix

{
mkDerivation,
haskellPackages,
fetchFromGitHub,
lib,
}:
mkDerivation {
pname = "fffuu";
version = "0.1.0.0-unstable-2018-05-26";
src = fetchFromGitHub {
owner = "diekmann";
repo = "Iptables_Semantics";
rev = "e0a2516bd885708fce875023b474ae341cbdee29";
hash = "sha256-kAWPyu0VzCJlt/LpVHaRgexkj+2CNblkxkZJ3Ai5h+E=";
};
postUnpack = ''
sourceRoot="$sourceRoot/haskell_tool"
'';
postPatch = ''
substituteInPlace fffuu.cabal \
--replace "containers >=0.5 && <0.6" "containers >= 0.6" \
--replace "optparse-generic >= 1.2.3 && < 1.3" "optparse-generic >= 1.2.3" \
--replace "split >= 0.2.3 && <= 0.2.4" "split >= 0.2.3"
'';
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 = [ ];
}