depot/third_party/nixpkgs/pkgs/development/interpreters/octave/wrap-octave.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

16 lines
444 B
Nix

{ 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";
deps = makeWrapper;
substitutions.executable = octave.interpreter;
substitutions.octave = octave;
} ./wrap.sh