Skip to content

Commit

Permalink
Fix Perl shebang in nixos-generate-config
Browse files Browse the repository at this point in the history
  • Loading branch information
jezen committed Nov 29, 2019
1 parent 9db75ed commit ed55f83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion nixos/modules/installer/tools/nixos-generate-config.pl
@@ -1,4 +1,9 @@
#! @perl@
#! /bin/sh --
eval '(exit $?0)' && eval 'PERL_BADLANG=x;PATH="/usr/bin:/bin:/usr/local/bin:$PATH";export PERL_BADLANG;: \
;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
exec 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q
#!/bin/perl -w
+($0=~/(.*)/s);do(index($1,"/")<0?"./$1":$1);die$@if$@;__END__+if 0;
use strict;
use Cwd 'abs_path';
Expand Down
1 change: 0 additions & 1 deletion pkgs/tools/filesystems/nixpart/0.4/blivet.nix
Expand Up @@ -28,7 +28,6 @@ buildPythonApplication rec {
}' blivet/formats/__init__.py
sed -i -e 's|"lsof"|"${lsof}/bin/lsof"|' blivet/formats/fs.py
sed -i -r -e 's|"(u?mount)"|"${utillinux.bin}/bin/\1"|' blivet/util.py
'' + stdenv.lib.optionalString useNixUdev ''
sed -i -e '/find_library/,/find_library/ {
c libudev = "${systemd.lib}/lib/libudev.so.1"
}' blivet/pyudev.py
Expand Down

0 comments on commit ed55f83

Please sign in to comment.