about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-09-10 20:42:41 +0200
committerGitHub <noreply@github.com>2017-09-10 20:42:41 +0200
commitdc9c2c7bac65f0138994a05f81b685867a792db5 (patch)
treee64270d5415d9e606c4b4a03de89e7e30b2835bf /pkgs
parentd96ad6b63586ea8d649f6657a26725360fef6ecd (diff)
parenta759faf60bdc578ea4723f2512be5fd24811f6cb (diff)
downloadnixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar.gz
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar.bz2
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar.lz
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar.xz
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.tar.zst
nixlib-dc9c2c7bac65f0138994a05f81b685867a792db5.zip
Merge pull request #29188 from LumiGuide/fix-hw-xml
haskell: fix build of hw-xml
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index c2c2e2ba33ab..2820c538b76b 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -102,6 +102,14 @@ self: super: {
   # https://github.com/froozen/kademlia/issues/2
   kademlia = dontCheck super.kademlia;
 
+  # https://github.com/haskell-works/hw-xml/issues/23
+  # Disable building the hw-xml-example executable:
+  hw-xml = (overrideCabal super.hw-xml (drv: {
+    postPatch = "sed -i 's/  hs-source-dirs:       app/" +
+                          "  hs-source-dirs:       app\\n" +
+                          "  buildable:            false/' hw-xml.cabal";
+  }));
+
   hzk = dontCheck super.hzk;
   haskakafka = dontCheck super.haskakafka;