summary refs log tree commit diff
path: root/pkgs/development/interpreters/octave/with-packages.nix
blob: f00befbb00d45ac8d48c3ce14dffdfd9cc71a642 (plain) (blame)
1
2
3
4
5
6
{ 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; }