What is @bash@ shebang #9321
Replies: 3 comments 1 reply
-
|
and here |
Beta Was this translation helpful? Give feedback.
-
|
I assume it means "find the derivation of name in the @@", but what version? Where is this behaviour defined? |
Beta Was this translation helpful? Give feedback.
-
|
Those are not a special Nix shebang syntax, and they do not mean "look up a derivation named They are template placeholders that are replaced when Home Manager builds the script. For substituteInPlace $out/bin/home-manager
--subst-var-by bash "${bash}"
...So #!/nix/store/...-bash-.../bin/bashThe exact Bash version is whichever The cnfScript = pkgs.replaceVars ./command-not-found.pl {
inherit (cfg) dbPath;
perl = pkgs.perl.withPackages (p: [
p.DBDSQLite
p.StringShellQuote
]);
};That replaces The purpose is to make the generated scripts refer to exact Nix store paths instead of relying on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Referenced here
home-manager/home-manager/home-manager
Line 1 in 9846abe
Is it some kind of nix specific shebang?
Beta Was this translation helpful? Give feedback.
All reactions