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
25
pkgs/build-support/setup-hooks/move-systemd-user-units.sh
Executable file
25
pkgs/build-support/setup-hooks/move-systemd-user-units.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This setup hook, for each output, moves everything in
|
||||
# $output/lib/systemd/user to $output/share/systemd/user, and replaces
|
||||
# $output/lib/systemd/user with a symlink to
|
||||
# $output/share/systemd/user.
|
||||
|
||||
fixupOutputHooks+=(_moveSystemdUserUnits)
|
||||
|
||||
_moveSystemdUserUnits() {
|
||||
if [ "${dontMoveSystemdUserUnits:-0}" = 1 ]; then return; fi
|
||||
if [ ! -e "${prefix:?}/lib/systemd/user" ]; then return; fi
|
||||
local source="$prefix/lib/systemd/user"
|
||||
local target="$prefix/share/systemd/user"
|
||||
echo "moving $source/* to $target"
|
||||
mkdir -p "$target"
|
||||
(
|
||||
shopt -s dotglob
|
||||
for i in "$source"/*; do
|
||||
mv "$i" "$target"
|
||||
done
|
||||
)
|
||||
rmdir "$source"
|
||||
ln -s "$target" "$source"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue