nixos_config/home/packages/sabretools/package.nix

42 lines
1 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
}:
buildDotnetModule {
pname = "sabretools";
version = "1.2.0";
src = fetchFromGitHub {
owner = "SabreTools";
repo = "SabreTools";
rev = "acfd6b1d116fc9d0d75166654df92fd1b0fb455d";
hash = "sha256-/bH+LV7tEdXcbP52j9hH0MU0V+oGWoJlZMla5Bq72fg=";
fetchSubmodules = true;
leaveDotGit = false;
};
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.runtime_9_0;
nugetDeps = ./deps.nix;
projectFile = "SabreTools/SabreTools.csproj";
dotnetBuildFlags = [ "--framework net9.0" ];
dotnetInstallFlags = [ "--framework net9.0" ];
executables = [ "SabreTools" ];
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";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "SabreTools";
platforms = lib.platforms.all;
};
}