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

arm64-darwin build on nixpkgs says No such file or directory (os error 2) #325

Open
BirkhoffLee opened this issue Jan 27, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@BirkhoffLee
Copy link

Description
I installed television from latest nixpkgs.

$ tv env
Error:
   0: No such file or directory (os error 2)

and nothing works.

However the build from Homebrew works.

Environment

  • OS: macOS
  • Rust version: not relevant
  • Project version: not relevant

Additional context
Any other context about the bug here.

@BirkhoffLee BirkhoffLee added the bug Something isn't working label Jan 27, 2025
@bcotton
Copy link

bcotton commented Jan 30, 2025

The following overlay works for me. I have unstablePkgs plumbed in from my flake:

{
  pkgs,
  lib,
  unstablePkgs,
  ...
}: self: super: {
  television = unstablePkgs.rustPlatform.buildRustPackage rec {
    pname = "television";
    version = "0.10.2";

    src = pkgs.fetchFromGitHub {
      owner = "alexpasmantier";
      repo = "television";
      rev = "refs/tags/${version}";
      hash = "sha256-VOoRl//Z0AiRv96SqopjUYePPUa9KRbEpLYzJ6k1b8Q=";
    };

    cargoHash = "sha256-ULq3nGz39ACFVtHfCvPsl7Ihc2PPv5lTM2K9xpQm48s=";

    nativeBuildInputs = with pkgs; [
      pkg-config
    ];

    meta = with lib; {
      description = "Television is a blazingly fast general purpose fuzzy finder";
      longDescription = ''
        Television is a blazingly fast general purpose fuzzy finder TUI written
        in Rust. It is inspired by the neovim telescope plugin and is designed
        to be fast, efficient, simple to use and easily extensible. It is built
        on top of tokio, ratatui and the nucleo matcher used by the helix editor.
      '';
      homepage = "https://github.com/alexpasmantier/television";
      changelog = "https://github.com/alexpasmantier/television/releases/tag/${version}";
      license = licenses.mit;
      mainProgram = "tv";
      maintainers = with maintainers; [
        louis-thevenet
        getchoo
      ];
    };
  };
}

@alexpasmantier
Copy link
Owner

You might need advice from @louis-thevenet or @getchoo on that one

@getchoo
Copy link

getchoo commented Feb 7, 2025

Thanks for the ping!

I would recommend moving this to Nixpkgs instead so it can be better tracked and not bother upstream (assuming this is an issue on our end)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants