nixos_config/home/packages/binaryobjectscanner/package.nix

44 lines
1.2 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
}:
buildDotnetModule {
pname = "binaryobjectscanner";
version = "3.3.4";
src = fetchFromGitHub {
owner = "SabreTools";
repo = "BinaryObjectScanner";
rev = "610078b47c2f976d5cfd8e9ea787c83014f74983";
hash = "sha256-5/87XP8uTBysX6U7pTGkNSDa2r0JiFFCDPy5gwWFFXY=";
fetchSubmodules = true;
leaveDotGit = false;
};
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.runtime_9_0;
nugetDeps = ./deps.json;
projectFile = ["ProtectionScan/ProtectionScan.csproj" "ExtractionTool/ExtractionTool.csproj"];
selfContainedBuild = false;
dotnetBuildFlags = [ "--framework net9.0" ];
dotnetInstallFlags = [ "--framework net9.0" ];
executables = [ "ExtractionTool" "ProtectionScan" ];
preFixup = ''
mv $out/bin/ExtractionTool $out/bin/bos-extractiontool
mv $out/bin/ProtectionScan $out/bin/bos-protectionscan
'';
meta = {
description = "C# protection, packer, and archive scanning library";
homepage = "https://github.com/SabreTools/BinaryObjectScanner";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "bos-protectionscan";
platforms = lib.platforms.all;
};
}