{
description = "dev environment";
inputs = {
mach-nix.url = "mach-nix/3.5.0";
};
outputs = {self, nixpkgs, mach-nix }@inp:
let
l = nixpkgs.lib // builtins;
requirements = builtins.readFile ./requirements.txt;
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: l.genAttrs supportedSystems
(system: f system (import nixpkgs {inherit system;}));
in
{
# enter this python environment by executing `nix shell .`
defaultPackage = forAllSystems (system: pkgs: mach-nix.lib."${system}".mkPython { inherit requirements; });
};
}
With this flake, when I run nix shell .
I get “fish: Job 1, ‘nix shell .’ terminated by signal SIGSEGV (Address boundary error)”. I don’t get this if I use a static set of requirements. Am I doing something obviously wrong here? Thanks!
OS: macos 12.5
nix: 2.10.3