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

racket: can't find Racket executable for variant cs #377763

Closed
3 tasks done
fin444 opened this issue Jan 29, 2025 · 1 comment · Fixed by #375992
Closed
3 tasks done

racket: can't find Racket executable for variant cs #377763

fin444 opened this issue Jan 29, 2025 · 1 comment · Fixed by #375992
Labels
0.kind: bug Something is broken

Comments

@fin444
Copy link
Contributor

fin444 commented Jan 29, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Racket errors out when trying to build executables. This was previously reported in #114993 and fixed by #118490. However, the resolving patch was removed in #365194.

Steps to reproduce

touch main.rkt
raco exe main.rkt

Expected behaviour

Should build the executable

Screenshots

No response

Relevant log output

find-exe: can't find Racket executable for variant cs
  context...:
   /nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/collects/compiler/embed.rkt:1499:0: create-embedding-executable
   /nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/pkgs/compiler-lib/compiler/commands/exe.rkt:100:0
   body of "/nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/pkgs/compiler-lib/compiler/commands/exe.rkt"
   /nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/collects/raco/raco.rkt:41:0
   body of "/nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/collects/raco/raco.rkt"
   body of "/nix/store/3xgflgs4kfpvlnp666xkxwncl9qb4ra2-racket-8.15/share/racket/collects/raco/main.rkt"

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.0, NixOS, 25.05 (Warbler), 25.05.20250121.9e4d519
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos"
  • nixpkgs: /nix/store/irknf7niks2djxz4csh7sr44wwrs082y-source

Notify maintainers

@rc-zb

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@fin444 fin444 added the 0.kind: bug Something is broken label Jan 29, 2025
@fin444
Copy link
Contributor Author

fin444 commented Jan 29, 2025

Though, it looks like overlaying with the patch doesn't resolve this issue either so more investigation may be necessary.

Ran with build instead of switch by mistake, this overlay does actually resolve the issue.

nixpkgs.overlays = [ (final: prev: {
	racket = prev.racket.overrideAttrs (old: {
		patches = old.patches ++ [ ./force-cs-variant.patch ];
	});
} ) ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant