mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
* Create a /usr/bin/env symlink. This allows scripts from other
distributions with shebang lines such as #! /usr/bin/env python to work correctly. svn path=/nixos/trunk/; revision=33011
This commit is contained in:
parent
9e980235bd
commit
7281a851b3
@ -126,7 +126,14 @@ in
|
||||
|
||||
system.activationScripts.media =
|
||||
''
|
||||
mkdir -p /media
|
||||
mkdir -m 0755 -p /media
|
||||
'';
|
||||
|
||||
system.activationScripts.usrbinenv =
|
||||
''
|
||||
mkdir -m 0755 -p /usr/bin
|
||||
ln -sfn ${pkgs.coreutils}/bin/env /usr/bin/.env.tmp
|
||||
mv /usr/bin/.env.tmp /usr/bin/env # atomically replace /usr/bin/env
|
||||
'';
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user