2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, octave
|
|
|
|
, makeSetupHook
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Defined in trivial-builders.nix
|
|
|
|
# Imported as wrapOctave in octave/default.nix and passed to octave's buildEnv
|
|
|
|
# as nativeBuildInput
|
|
|
|
# Each of the substitutions is available in the wrap.sh script as @thingSubstituted@
|
|
|
|
makeSetupHook {
|
|
|
|
name = "${octave.name}-pkgs-setup-hook";
|
2023-03-04 12:14:45 +00:00
|
|
|
propagatedBuildInputs = [ makeWrapper ];
|
2021-03-09 03:18:52 +00:00
|
|
|
substitutions.executable = octave.interpreter;
|
|
|
|
substitutions.octave = octave;
|
|
|
|
} ./wrap.sh
|