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
31
nixos/modules/services/networking/ircd-hybrid/builder.sh
Normal file
31
nixos/modules/services/networking/ircd-hybrid/builder.sh
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
source $stdenv/setup
|
||||
|
||||
doSub() {
|
||||
local src=$1
|
||||
local dst=$2
|
||||
mkdir -p $(dirname $dst)
|
||||
substituteAll $src $dst
|
||||
}
|
||||
|
||||
subDir=/
|
||||
for i in $scripts; do
|
||||
if test "$(echo $i | cut -c1-2)" = "=>"; then
|
||||
subDir=$(echo $i | cut -c3-)
|
||||
else
|
||||
dst=$out/$subDir/$(stripHash $i | sed 's/\.in//')
|
||||
doSub $i $dst
|
||||
chmod +x $dst # !!!
|
||||
fi
|
||||
done
|
||||
|
||||
subDir=/
|
||||
for i in $substFiles; do
|
||||
if test "$(echo $i | cut -c1-2)" = "=>"; then
|
||||
subDir=$(echo $i | cut -c3-)
|
||||
else
|
||||
dst=$out/$subDir/$(stripHash $i | sed 's/\.in//')
|
||||
doSub $i $dst
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir -p $out/bin
|
||||
Loading…
Add table
Add a link
Reference in a new issue