diff --git a/overlay.nix b/overlay.nix index c1b88aaa..01018d1d 100644 --- a/overlay.nix +++ b/overlay.nix @@ -2,10 +2,13 @@ pkgs: hlib: helf: huper: { hnix-store-core = helf.callCabal2nix "hnix-store-core" ./hnix-store-core {}; hnix-store-remote = - ( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { } - ).overrideAttrs (attrs: { - buildInputs = attrs.buildInputs ++ [ - pkgs.nix - ]; - }); + if pkgs.stdenv.isDarwin + then helf.callCabal2nix "hnix-store-remote" ./hnix-store-remote { } + else + ( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { } + ).overrideAttrs (attrs: { + buildInputs = attrs.buildInputs ++ [ + pkgs.nix + ]; + }); }