diff options
author | sternenseemann <sternenseemann@systemli.org> | 2021-08-06 03:32:50 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-08-06 03:34:09 +0200 |
commit | 964abed995b7566fff2d23301e6a4278c17c87c5 (patch) | |
tree | 979eced0d955753850c647677b0b5da588096710 /pkgs/development/haskell-modules/configuration-darwin.nix | |
parent | ff09b0fe448ca78799c26c4d0c8a105ba34c6b69 (diff) | |
download | nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar.gz nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar.bz2 nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar.lz nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar.xz nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.tar.zst nixpkgs-964abed995b7566fff2d23301e6a4278c17c87c5.zip |
haskellPackages.cas-store: fix build on darwin by providing kqueue
kqueue is a conditional dependency which is added via a cabal conditional which we need to emulate manually.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-darwin.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index c18edd8cc14..6d884d849d3 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -180,6 +180,13 @@ self: super: { '' + (drv.postPatch or ""); }); + # conditional dependency via a cabal flag + cas-store = overrideCabal super.cas-store (drv: { + libraryHaskellDepends = [ + self.kqueue + ] ++ (drv.libraryHaskellDepends or []); + }); + # 2021-05-25: Tests fail and I have no way to debug them. hls-class-plugin = dontCheck super.hls-class-plugin; hls-brittany-plugin = dontCheck super.hls-brittany-plugin; |