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

Unable to nix run #48

Closed
srid opened this issue Jul 10, 2023 · 4 comments
Closed

Unable to nix run #48

srid opened this issue Jul 10, 2023 · 4 comments

Comments

@srid
Copy link

srid commented Jul 10, 2023

This seems to be because naersk is setting a wrong meta.mainProgram (ie., includes version string unnecessarily)

❯ nix run github:asciinema/agg
error: unable to execute '/nix/store/4vwhkp4c8vdxv3j0yr0llv5dc0h5r0jg-agg-1.4.2/bin/agg-1.4.2': No such file or directory
❯ ls /nix/store/4vwhkp4c8vdxv3j0yr0llv5dc0h5r0jg-agg-1.4.2/bin
agg
@srid
Copy link
Author

srid commented Jul 10, 2023

Related: I use dream2nix to package Rust programs (nix run works well here): https://github.com/srid/rust-nix-template

@ku1ik
Copy link
Contributor

ku1ik commented Jul 21, 2023

What is naersk?

@srid
Copy link
Author

srid commented Jul 21, 2023

The nix builder used by this project

naersk.url = "github:nix-community/naersk/master";

@ku1ik
Copy link
Contributor

ku1ik commented Jul 22, 2023

I see. I'm not familiar with this. @yvan-sraka can you help?

yvan-sraka added a commit to yvan-sraka/agg that referenced this issue Jul 24, 2023
    error: unable to execute '/nix/store/.../bin/agg-1.4.2': No such file or directory
@ku1ik ku1ik closed this as completed in 56fee66 Jul 24, 2023
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

2 participants