Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 57 lines 1.3 kB view raw
1{ 2 mkDerivation, 3 haskellPackages, 4 fetchFromGitHub, 5 lib, 6}: 7 8mkDerivation { 9 pname = "fffuu"; 10 version = "unstable-2018-05-26"; 11 12 src = fetchFromGitHub { 13 owner = "diekmann"; 14 repo = "Iptables_Semantics"; 15 rev = "e0a2516bd885708fce875023b474ae341cbdee29"; 16 sha256 = "1qc7p44dqja6qrjbjdc2xn7n9v41j5v59sgjnxjj5k0mxp58y1ch"; 17 }; 18 19 postPatch = '' 20 substituteInPlace haskell_tool/fffuu.cabal \ 21 --replace "containers >=0.5 && <0.6" "containers >= 0.6" \ 22 --replace "optparse-generic >= 1.2.3 && < 1.3" "optparse-generic >= 1.2.3" \ 23 --replace "split >= 0.2.3 && <= 0.2.4" "split >= 0.2.3" 24 ''; 25 26 preCompileBuildDriver = '' 27 cd haskell_tool 28 ''; 29 30 isLibrary = false; 31 32 isExecutable = true; 33 34 # fails with sandbox 35 doCheck = false; 36 37 libraryHaskellDepends = with haskellPackages; [ 38 base 39 containers 40 split 41 parsec 42 optparse-generic 43 ]; 44 45 executableHaskellDepends = with haskellPackages; [ base ]; 46 47 testHaskellDepends = with haskellPackages; [ 48 tasty 49 tasty-hunit 50 tasty-golden 51 ]; 52 53 description = "Fancy Formal Firewall Universal Understander"; 54 homepage = "https://github.com/diekmann/Iptables_Semantics/tree/master/haskell_tool"; 55 license = lib.licenses.bsd2; 56 maintainers = [ ]; 57}