nixos_config/home/packages/binaryobjectscanner/package.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-15 02:58:42 -04:00
{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
}:
buildDotnetModule {
pname = "binaryobjectscanner";
2024-06-18 04:58:53 -04:00
version = "3.1.13";
2024-06-15 02:58:42 -04:00
src = fetchFromGitHub {
owner = "SabreTools";
repo = "BinaryObjectScanner";
2024-06-21 18:10:02 -04:00
rev = "e3eed76826fe8a4254783eb59e91abe69233e935";
hash = "sha256-t0clhrZ8e6fiul2kAIutks1Y7v4D7N8zL+16J1vBAc0=";
2024-06-15 02:58:42 -04:00
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" ];
executables = [ "Test" ];
2024-06-15 02:58:42 -04:00
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;
};
}