From a609e364031e3e6896b2aca7a2aa50ec2e9c61fc Mon Sep 17 00:00:00 2001 From: Whovian9369 Date: Sat, 18 May 2024 16:35:10 -0400 Subject: [PATCH] Swap to using the main `csproj`, and rename the binary to `sabretools` --- home/packages/sabretools/TargetName_lowercase.diff | 12 ++++++++++++ home/packages/sabretools/package.nix | 11 ++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 home/packages/sabretools/TargetName_lowercase.diff diff --git a/home/packages/sabretools/TargetName_lowercase.diff b/home/packages/sabretools/TargetName_lowercase.diff new file mode 100644 index 0000000..544016e --- /dev/null +++ b/home/packages/sabretools/TargetName_lowercase.diff @@ -0,0 +1,12 @@ +diff --git a/SabreTools/SabreTools.csproj b/SabreTools/SabreTools.csproj +index 9adc4c7a..cb15305b 100644 +--- a/SabreTools/SabreTools.csproj ++++ b/SabreTools/SabreTools.csproj +@@ -10,6 +10,7 @@ + latest + enable + true ++ sabretools + true + 1.1.2 + diff --git a/home/packages/sabretools/package.nix b/home/packages/sabretools/package.nix index 9a2d820..16344e0 100644 --- a/home/packages/sabretools/package.nix +++ b/home/packages/sabretools/package.nix @@ -1,4 +1,5 @@ -{ lib, +{ + lib, buildDotnetModule, dotnetCorePackages, fetchFromGitHub @@ -20,11 +21,15 @@ buildDotnetModule { dotnet-sdk = dotnetCorePackages.sdk_8_0; dotnet-runtime = dotnetCorePackages.runtime_8_0; nugetDeps = ./deps.nix; - projectFile = "SabreTools.sln"; - # projectFile = "SabreTools/SabreTools.csproj"; + # projectFile = "SabreTools.sln"; + projectFile = "SabreTools/SabreTools.csproj"; dotnetBuildFlags = [ "--framework net8.0" ]; dotnetInstallFlags = [ "--framework net8.0" ]; + postFixup = '' + mv $out/bin/SabreTools $out/bin/sabretools + ''; + meta = { description = "DAT management tool with advanced editing and sorting features"; homepage = "https://github.com/SabreTools/SabreTools";