Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreCollisions does not work in flake #516

Open
IllustratedMan-code opened this issue Oct 5, 2022 · 0 comments
Open

ignoreCollisions does not work in flake #516

IllustratedMan-code opened this issue Oct 5, 2022 · 0 comments

Comments

@IllustratedMan-code
Copy link

Consider this flake:

{
  inputs = {
    mach-nix.url = "github:DavHau/mach-nix";
    flake-utils.url = "github:numtide/flake-utils";
    nextflow.url = "github:IllustratedMan-code/nextflowFlake";
  };

  outputs = { self, nixpkgs, mach-nix, flake-utils, nextflow }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        pythonPackage = mach-nix.lib."${system}".buildPythonPackage { src = ./.; python = "python38"; };
        pythonShell = mach-nix.lib."${system}".mkPython {
          python = "python38";
          requirements = ''
            nf-core
          '';
        };
      in
      {
        packages = flake-utils.lib.flattenTree {
          default = pythonPackage;
        };
        devShells = flake-utils.lib.flattenTree {
          default = pkgs.mkShell {
            buildInputs = [ pythonShell nextflow.packages."${system}".default];
            shellHook = ''
              export PYTHONPATH=$PWD
            '';
          };
        };
      });
}

It fails with a collision between two python modules due to the nf-core package; however, ignoreCollisions=true; does not prevent the error from occurring.

This is reproducible with this flake when you run nix develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant