Skip to content

Commit

Permalink
overlay.nix: use no io-testuite enabled package for darwin
Browse files Browse the repository at this point in the history
This makes it not pick-up linux-namespaces dependency which
is Linux specific.
  • Loading branch information
sorki committed Nov 11, 2023
1 parent 1f55815 commit ca43418
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
});
}

0 comments on commit ca43418

Please sign in to comment.