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-18 04:58:53 -04:00
rev = "a4ee4529caeb9a1739518abcd1e5d0ddbd096d12";
hash = "sha256-dSl1+8aoqRpPATQJuSGNyns9PGB7Olka5OJMg9MPz34=";
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;
};
}