2021-02-14 07:27:17 +01: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-01-01 21:10:24 +01:00
|
|
|
propagatedBuildInputs = [ makeWrapper ];
|
2021-02-14 07:27:17 +01:00
|
|
|
substitutions.executable = octave.interpreter;
|
|
|
|
substitutions.octave = octave;
|
|
|
|
} ./wrap.sh
|