overlay.nix: use no io-testuite enabled package for darwin

This makes it not pick-up linux-namespaces dependency which
is Linux specific.
This commit is contained in:
Richard Marko 2023-11-11 16:13:02 +01:00
parent 1f55815e5b
commit ca43418b4d

View File

@ -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
];
});
}