Files
simplex-chat/scripts/nix/native-packages.nix
T

15 lines
497 B
Nix

{ haskellNix }:
system:
# Keep haskell.nix's existing host pins, including Intel Darwin's 26.05 pin.
# Its flake omits ARM64 Linux, so construct that native set from the same inputs.
let
native = haskellNix.legacyPackages.${system} or (import haskellNix.inputs.nixpkgs {
localSystem = { inherit system; };
config = haskellNix.config;
overlays = [ haskellNix.overlay ];
});
in
if system == "x86_64-linux"
then native.appendOverlays [ (import ./native-rts-overlay.nix) ]
else native