30 lines
797 B
Nix
30 lines
797 B
Nix
|
{ stdenv, mkXPlaneAddon }:
|
||
|
|
||
|
mkXPlaneAddon rec {
|
||
|
pname = "toliss-A321";
|
||
|
version = "1.1";
|
||
|
fname = "ToLissA321_V1p1.zip";
|
||
|
sha256 = "027bb9qysjjdvrgkni08grrk1agppb6l653jqqnyfz1f30bc1xkq";
|
||
|
forumlink = "https://forums.x-plane.org/index.php?/forums/forum/534-airbus-a321/";
|
||
|
buildCommand = ''
|
||
|
mkdir -p $out
|
||
|
cd $out
|
||
|
unzip $src
|
||
|
'';
|
||
|
passthru = {
|
||
|
build = ''
|
||
|
ln -s $ADDONPATH $out/xplane-extra/ToLiss-A321
|
||
|
'';
|
||
|
prepare = ''
|
||
|
mkdir -p "$XPLANEPATH/Aircraft/ToLiss/ToLiss_A321"
|
||
|
for f in /xplane-extra/ToLiss-A321/*/*; do
|
||
|
cp -r --no-preserve=mode "$f" "$XPLANEPATH/Aircraft/ToLiss/ToLiss_A321"
|
||
|
done
|
||
|
'';
|
||
|
revert = ''
|
||
|
rm -fr "$XPLANEPATH/Aircraft/ToLiss/ToLiss_A321"
|
||
|
rmdir "$XPLANEPATH/Aircraft/ToLiss" || true
|
||
|
'';
|
||
|
};
|
||
|
}
|