diff options
| author | nzbr <mail@nzbr.de> | 2022-06-20 11:37:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 11:37:16 +0200 |
| commit | e4e8d92082d19a6ea5cf7f46530e8c2e37faded5 (patch) | |
| tree | 305650649e24c4430168f7e880d2d4da0af07731 /modules/installer.nix | |
| parent | 8fe0996264d173b5250300afeaf057180b9f27b2 (diff) | |
fix /bin/wslpath missing (#106)
* add a wslpath symlink to PATH
* use an activation script instead
* Also add wslpath to the installer
* installer: use extraCommands to create the symlink
* wrap commands in shell script
* add wslpath to PATH through systemPackages
* remove -r
Diffstat (limited to 'modules/installer.nix')
| -rw-r--r-- | modules/installer.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/installer.nix b/modules/installer.nix index 04d5127..45d191a 100644 --- a/modules/installer.nix +++ b/modules/installer.nix @@ -59,6 +59,12 @@ with builtins; with lib; { { source = "${pkgs.busybox}/bin/busybox"; target = "/bin/sh"; } { source = "${pkgs.busybox}/bin/busybox"; target = "/bin/mount"; } ]; + + extraCommands = pkgs.writeShellScript "prepare" '' + export PATH=$PATH:${pkgs.coreutils}/bin + mkdir -p bin + ln -s /init bin/wslpath + ''; }; } |
