nixos_config/home/packages/binaryobjectscanner/package.nix

44 lines
1.1 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
}:
buildDotnetModule {
pname = "binaryobjectscanner";
version = "3.1.13";
src = fetchFromGitHub {
owner = "SabreTools";
repo = "BinaryObjectScanner";
rev = "e3eed76826fe8a4254783eb59e91abe69233e935";
hash = "sha256-t0clhrZ8e6fiul2kAIutks1Y7v4D7N8zL+16J1vBAc0=";
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" ];
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;
};
}