uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
13
pkgs/development/interpreters/octave/hooks/default.nix
Normal file
13
pkgs/development/interpreters/octave/hooks/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Hooks for building Octave packages.
|
||||
{ octave
|
||||
, lib
|
||||
, callPackage
|
||||
, makeSetupHook
|
||||
}:
|
||||
|
||||
rec {
|
||||
writeRequiredOctavePackagesHook = callPackage ({ }:
|
||||
makeSetupHook {
|
||||
name = "write-required-octave-packages-hook";
|
||||
} ./write-required-octave-packages-hook.sh) {};
|
||||
}
|
||||
|
|
@ -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 octave-write-required-octave-packages-hook.sh"
|
||||
|
||||
octaveWriteRequiredOctavePackagesPhase() {
|
||||
echo "Executing octaveWriteRequiredOctavePackagesPhase"
|
||||
|
||||
mkdir -p $out/nix-support
|
||||
echo ${requiredOctavePackages} > $out/nix-support/required-octave-packages
|
||||
}
|
||||
|
||||
# Yes its a bit long...
|
||||
if [ -z "${dontWriteRequiredOctavePackagesPhase-}" ]; then
|
||||
echo "Using octaveWriteRequiredOctavePackagesPhase"
|
||||
preDistPhases+=" octaveWriteRequiredOctavePackagesPhase"
|
||||
fi
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue