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
21
pkgs/games/clonehero/xdg-wrapper.nix
Normal file
21
pkgs/games/clonehero/xdg-wrapper.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, clonehero-unwrapped, writeScript }:
|
||||
|
||||
# Clone Hero doesn't have an installer, so it just stores configuration & data relative to the binary.
|
||||
# This wrapper works around that limitation, storing game configuration & data in XDG_CONFIG_HOME.
|
||||
let
|
||||
name = "clonehero";
|
||||
desktopName = "Clone Hero";
|
||||
in
|
||||
writeScript "${name}-xdg-wrapper-${clonehero-unwrapped.version}" ''
|
||||
#!${stdenv.shell} -e
|
||||
configDir="''${XDG_CONFIG_HOME:-$HOME/.config}/unity3d/srylain Inc_/${desktopName}"
|
||||
mkdir -p "$configDir"
|
||||
|
||||
# Force link shipped clonehero_Data, unless directory already exists (to allow modding)
|
||||
if [ ! -d "$configDir/clonehero_Data" ] || [ -L "$configDir/clonehero_Data" ]; then
|
||||
ln -snf ${clonehero-unwrapped}/share/clonehero_Data "$configDir"
|
||||
fi
|
||||
|
||||
# Fake argv[0] to emulate running in the config directory
|
||||
exec -a "$configDir/${name}" ${clonehero-unwrapped}/bin/${name} "$@"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue