Skip to content

Commit

Permalink
hotfix(magic-wormhole): fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
midchildan committed Nov 9, 2023
1 parent 9583861 commit 2b499ca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nix/overlays/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@

final: prev:

let
inherit (prev) darwin;

python3 = prev.python3.override {
packageOverrides = final: prev: {
# FIXME: works around the following error
# > FileNotFoundError: [Errno 2] No such file or directory: 'locale'
magic-wormhole = prev.magic-wormhole.overridePythonAttrs (old: {
nativeCheckInputs = (old.nativeCheckInputs or [ ]) ++ [ darwin.locale ];
});
};
};
in
{
# TODO: remove
# https://github.com/NixOS/nixpkgs/pull/263951
cutter = prev.cutter.override { python3 = prev.python310; };

} // prev.lib.optionalAttrs prev.stdenv.isDarwin {
magic-wormhole = with python3.pkgs; toPythonApplication magic-wormhole;
}

0 comments on commit 2b499ca

Please sign in to comment.