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

om show should handle all systems #193

Open
Tracked by #162
srid opened this issue Aug 3, 2024 · 1 comment
Open
Tracked by #162

om show should handle all systems #193

srid opened this issue Aug 3, 2024 · 1 comment
Assignees
Labels
question Further information is requested
Milestone

Comments

@srid
Copy link
Member

srid commented Aug 3, 2024

image

The flake in question is from a private repo, but here's a copy:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
  };
  outputs = inputs:
    inputs.flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [ "x86_64-linux" ]; # iconv doesn't work on macOS
      perSystem = { pkgs, lib, ... }: {
        formatter = pkgs.nixpkgs-fmt;
        apps.default.program = lib.getExe (pkgs.writeShellApplication {
          // snip fields
        });
        devShells.default = pkgs.mkShell {
          packages = [ pkgs.httrack pkgs.wget ];
        };
      };
    };
}

Notice the systems = [ "x86_64-linux" ] - which means running om show won't show anything. Perhaps it should still show other systems. Maybe spit out an error saying no output for current system, and that the user can run om show . --all-systems to display for all systems? Need to figure out UX.

@srid srid added the question Further information is requested label Aug 3, 2024
@srid srid added this to the v2 milestone Aug 3, 2024
@srid srid mentioned this issue Aug 9, 2024
9 tasks
@srid
Copy link
Member Author

srid commented Aug 20, 2024

Consider how this would work if IFD is used.

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

No branches or pull requests

2 participants