Skip to content

Commit ca43418

Browse files
committed
overlay.nix: use no io-testuite enabled package for darwin
This makes it not pick-up linux-namespaces dependency which is Linux specific.
1 parent 1f55815 commit ca43418

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

overlay.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ pkgs: hlib: helf: huper: {
22
hnix-store-core =
33
helf.callCabal2nix "hnix-store-core" ./hnix-store-core {};
44
hnix-store-remote =
5-
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { }
6-
).overrideAttrs (attrs: {
7-
buildInputs = attrs.buildInputs ++ [
8-
pkgs.nix
9-
];
10-
});
5+
if pkgs.stdenv.isDarwin
6+
then helf.callCabal2nix "hnix-store-remote" ./hnix-store-remote { }
7+
else
8+
( helf.callCabal2nixWithOptions "hnix-store-remote" ./hnix-store-remote "-fio-testsuite" { }
9+
).overrideAttrs (attrs: {
10+
buildInputs = attrs.buildInputs ++ [
11+
pkgs.nix
12+
];
13+
});
1114
}

0 commit comments

Comments
 (0)