[Nix-dev] Patching shebang paths

Roman Cheplyaka roma at ro-che.info
Wed Jun 11 17:50:18 CEST 2008


* Ludovic Courtès <ludovic.courtes at inria.fr> [2008-06-11 14:13:02+0200]
> Hi,
> 
> Eelco Dolstra <e.dolstra at tudelft.nl> writes:
> 
> > Author: eelco
> > Date: 2008-06-11 11:22:54 +0000 (Wed, 11 Jun 2008)
> > New Revision: 12036
> >
> > You can view the changes in this commit at:
> >    https://svn.nixos.org/viewvc/nix?rev=12036&view=rev
> >
> > Modified:
> >    nixpkgs/branches/stdenv-updates/pkgs/stdenv/generic/setup.sh
> >
> > Log:
> > * Automatically patch shebang paths ("#! /interpreter") to store
> >   paths.  E.g. /usr/bin/perl is rewritten to /nix/store/<whatever Perl
> >   is in $PATH>.  Paths in the Nix store are left unchanged.
> >   Contributed by Nicolas Pierron.
> 
> Good idea!  I've been doing it manually for too long.  ;-)

So, this affects only scripts under package manager's control?
What should one do with local scripts?

-- 
Roman I. Cheplyaka :: http://ro-che.info/
...being in love is totally punk rock...



More information about the nix-dev mailing list