nixos_config/home/packages/binaryobjectscanner/package.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-15 02:58:42 -04:00
{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
}:
buildDotnetModule {
pname = "binaryobjectscanner";
version = "3.1.12";
src = fetchFromGitHub {
owner = "SabreTools";
repo = "BinaryObjectScanner";
rev = "abc68d8503af270495858e13947aba211afb94c9";
hash = "sha256-BKWS7ZbAAyWo7/ud4LqFuwDm7jQaVrHmwuzAS7d/yHc=";
fetchSubmodules = true;
leaveDotGit = false;
};
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
nugetDeps = ./deps.nix;
projectFile = "Test/Test.csproj";
selfContainedBuild = false;
dotnetBuildFlags = [ "--framework net8.0" ];
dotnetInstallFlags = [ "--framework net8.0" ];
preFixup = ''
mv $out/bin/Test $out/bin/binaryobjectscanner
'';
meta = {
description = "C# protection, packer, and archive scanning library";
homepage = "https://github.com/SabreTools/BinaryObjectScanner";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "binaryobjectscanner";
platforms = lib.platforms.all;
};
}