From 482c29f8c6077a8ecba9c7d6ee5035451fc78396 Mon Sep 17 00:00:00 2001 From: Aycan iRiCAN Date: Sat, 15 Aug 2015 10:35:36 +0300 Subject: [PATCH] haskell-hans: disable building example webserver which includes double main. --- .../haskell-modules/configuration-common.nix | 2 ++ .../patches/hans-disable-webserver.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/development/haskell-modules/patches/hans-disable-webserver.patch diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 61e45edf8f2e..758397de1ab1 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -925,4 +925,6 @@ self: super: { elm-server = markBroken super.elm-server; elm-yesod = markBroken super.elm-yesod; + # https://github.com/GaloisInc/HaNS/pull/8 + hans = appendPatch super.hans ./patches/hans-disable-webserver.patch; } diff --git a/pkgs/development/haskell-modules/patches/hans-disable-webserver.patch b/pkgs/development/haskell-modules/patches/hans-disable-webserver.patch new file mode 100644 index 000000000000..14f7e51fdf2c --- /dev/null +++ b/pkgs/development/haskell-modules/patches/hans-disable-webserver.patch @@ -0,0 +1,11 @@ +diff -Naur hans-2.5.0.0/hans.cabal hans-2.5.0.1/hans.cabal +--- hans-2.5.0.0/hans.cabal 2015-08-06 14:48:45.453072822 +0300 ++++ hans-2.5.0.1/hans.cabal 2015-08-06 14:49:13.044391528 +0300 +@@ -30,6 +30,7 @@ + description: Build the example program + + flag web-server ++ default: False + description: Build a simple web-server example + + flag word32-in-random