From 249057b03becc5efb0ce722bc80ab2cc1b8e07fc Mon Sep 17 00:00:00 2001 From: Stephen Johnson Date: Fri, 15 Sep 2023 14:05:00 -0500 Subject: [PATCH] Fixed nix build and updated the README. --- README.md | 13 ++++++++++++- Src/CommandLine/CommandLine.csproj | 10 ++++++++++ formula.nix | 4 ++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3393ef..960d0c2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,18 @@ To build the command line interpreter, run the following commands from Src/Comma ```bash $ dotnet build CommandLine.sln /p:Configuration=Debug|Release /p:Platform=x64|ARM64 -$ dotnet ./bin////net6.0/CommandLine.dll + +For Windows x64 +$ dotnet ./bin//Windows/x64/net6.0/VUISIS.Formula.x64.dll + +For Linux x64 +$ dotnet ./bin//Linux/x64/net6.0/VUISIS.Formula.x64.dll + +For MacOS x64 +$ dotnet ./bin//MacOS/x64/net6.0/VUISIS.Formula.x64.dll + +For MacOS ARM64 +$ dotnet ./bin//MacOS/ARM64/net6.0/VUISIS.Formula.ARM64.dll ``` To run unit tests with Formula, run the following command from diff --git a/Src/CommandLine/CommandLine.csproj b/Src/CommandLine/CommandLine.csproj index cf6e4a8..ac000c6 100644 --- a/Src/CommandLine/CommandLine.csproj +++ b/Src/CommandLine/CommandLine.csproj @@ -39,6 +39,16 @@ True + + + VUISIS.Formula.x64 + + + + + VUISIS.Formula.x64 + + diff --git a/formula.nix b/formula.nix index 37e45b4..99bc221 100644 --- a/formula.nix +++ b/formula.nix @@ -15,10 +15,10 @@ buildDotnetModule rec { dotnet-runtime = dotnetCorePackages.runtime_6_0; dotnet-sdk = dotnetCorePackages.sdk_6_0; postFixup = if stdenv.isLinux then '' - mv $out/bin/CommandLine $out/bin/formula + mv $out/bin/VUISIS.Formula.x64 $out/bin/formula '' else lib.optionalString stdenv.isDarwin '' makeWrapper ${dotnetCorePackages.runtime_6_0}/bin/dotnet $out/bin/formula \ - --add-flags "$out/lib/formula-dotnet/CommandLine.dll" \ + --add-flags "$out/lib/formula-dotnet/VUISIS.Formula.x64.dll" \ --prefix DYLD_LIBRARY_PATH : $out/lib/formula-dotnet/runtimes/macos/native '';