Skip to content

Commit

Permalink
Allow to build for non-systemd systems
Browse files Browse the repository at this point in the history
This will disable systemd integration for all cabal users,
but fixes IntersectMBO#1200.

There are two other ways to fix this:

* provide a hackage overlay, which contains lobemo-scribe-systemd
  only or all 3rdparty packages and then add that overlay to
  cabal.project (downside: stack doesn't seem to be able to use
  hackage overlays)
* provide 2 cabal.project files and let user choose via e.g.:
  --project-file=cabal.project.nosystemd
  (downside: maintaining yet another file)
  • Loading branch information
Julian Ospald committed Aug 11, 2020
1 parent 846df6d commit 7b602f2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,6 @@ source-repository-package
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
subdir: contra-tracer

source-repository-package
type: git
location: https://github.com/input-output-hk/iohk-monitoring-framework
tag: efa4b5ecd7f0a13124616b12679cd42517cd905a
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
subdir: plugins/scribe-systemd

source-repository-package
type: git
location: https://github.com/input-output-hk/iohk-monitoring-framework
Expand Down Expand Up @@ -424,3 +417,7 @@ constraints:

package comonad
flags: -test-doctests

-- force systemd off until there's a solution to
-- https://github.com/haskell/cabal/issues/5444
flags: -systemd

0 comments on commit 7b602f2

Please sign in to comment.