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

6 lines
337 B
Nix

{ buildEnv, octavePackages }:
# Takes the buildEnv defined for Octave and the set of octavePackages, and returns
# a function, which when given a function whose return value is a list of extra
# packages to install, builds and returns that environment.
f: let packages = f octavePackages; in buildEnv.override { extraLibs = packages; }