Skip to content

Commit

Permalink
uabea: init at 7
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimatooth authored and fatima-toothpaste committed Oct 9, 2024
1 parent e92bae9 commit f5fd130
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkgs/by-name/ua/uabea/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
buildDotnetModule,
dotnetCorePackages,
fontconfig,
<<<<<<< HEAD
=======
gtk3,
>>>>>>> 583a569be (uabea: init at 7)
libICE,
lib,
libSM,
Expand All @@ -29,18 +33,38 @@ buildDotnetModule rec {
libICE
libSM
libX11
<<<<<<< HEAD
];

# TexToolWrap is broken on non-Windows
preConfigure = ''
dotnet sln UABEAvalonia.sln remove TexToolWrap/TexToolWrap.vcxproj
=======
gtk3
];
# Broken on non-Windows
preConfigure = ''
dotnet sln UABEAvalonia.sln remove TexToolWrap/TexToolWrap.vcxproj

#Save config file on Environment.SpecialFolder.ApplicationData
configFile="UABEAvalonia/Config/ConfigurationManager.cs"
sed -i '15 a\System.IO.Directory.CreateDirectory(Path.GetDirectoryName(configPath));' $configFile
substituteInPlace $configFile \
--replace-fail 'AppDomain.CurrentDomain.BaseDirectory' \
'Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "UABEA"'
>>>>>>> 583a569be (uabea: init at 7)
'';

postFixup = ''
# Avalonia crashes with some locales.
wrapProgram $out/bin/UABEAvalonia --set LC_ALL C
<<<<<<< HEAD
# Move plguins manually
=======
#Move plguins manually
>>>>>>> 583a569be (uabea: init at 7)
cd $out/lib/uabea
mv AudioClipPlugin.dll Fmod5Sharp.dll FontPlugin.dll TexturePlugin.dll \
NAudio.Core.dll OggVorbisEncoder.dll System.Text.Json.dll TextAssetPlugin.dll \
Expand Down

0 comments on commit f5fd130

Please sign in to comment.