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

fix /bin/wslpath missing #106

Merged
merged 7 commits into from
Jun 20, 2022
Merged

fix /bin/wslpath missing #106

merged 7 commits into from
Jun 20, 2022

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Jun 13, 2022

Fixes #104

@nzbr nzbr requested a review from SuperSandro2000 June 13, 2022 17:30
@nzbr nzbr marked this pull request as draft June 13, 2022 17:52
@nzbr nzbr marked this pull request as ready for review June 13, 2022 18:10
@nzbr nzbr linked an issue Jun 13, 2022 that may be closed by this pull request
@nzbr nzbr added the bug Something isn't working label Jun 13, 2022
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That only kinda works when doing PATH=$PATH:/bin code .

NixOS does not include /bin into $PATH by default but adding it is also not necessary since wslpath only cares about the symlink name, not the path. So it should be enough to create a basic package which symlinks /init to $out/bin/wslpath

@SuperSandro2000
Copy link
Member

something like this

environment.systemPackages = [
(pkgs.writeShellScript "wslpath" ''
  ln -rs /init $out/bin/wslpath
'';)
];

@nzbr nzbr requested a review from SuperSandro2000 June 15, 2022 15:50
@nzbr nzbr merged commit e4e8d92 into main Jun 20, 2022
@nzbr nzbr deleted the wslpath-fix branch August 21, 2022 23:14
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

Successfully merging this pull request may close these issues.

wslpath symlink is missing
2 participants