octave.pkgs: init
Heavily based on Python's packages set.
This commit is contained in:
committed by
Doron Behar
parent
148eff94b3
commit
481e1d3a77
@@ -0,0 +1,17 @@
|
||||
# Setup hook for writing octave packages that are run-time dependencies for
|
||||
# another package to a nix-support file.
|
||||
# `echo`s the full path name to the package derivation that is required.
|
||||
echo "Sourcing write-required-octave-packages-hook.sh"
|
||||
|
||||
writeRequiredOctavePackagesPhase() {
|
||||
echo "Executing writeRequiredOctavePackagesPhase"
|
||||
|
||||
mkdir -p $out/nix-support
|
||||
echo ${requiredOctavePackages} > $out/nix-support/required-octave-packages
|
||||
}
|
||||
|
||||
# Yes its a bit long...
|
||||
if [ -z "${dontWriteRequiredOctavePackagesPhase-}" ]; then
|
||||
echo "Using writeRequiredOctavePackagesPhase"
|
||||
preDistPhases+=" writeRequiredOctavePackagesPhase"
|
||||
fi
|
||||
Reference in New Issue
Block a user