nixpkgs/pkgs/development/interpreters/octave/wrap-octave.nix
2024-07-26 11:18:09 +02:00

16 lines
455 B
Nix

{ octave
, makeSetupHook
, makeWrapper
}:
# Defined in trivial-builders
# 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";
propagatedBuildInputs = [ makeWrapper ];
substitutions.executable = octave.interpreter;
substitutions.octave = octave;
} ./wrap.sh