nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDotnetModule,
4 dotnetCorePackages,
5 fetchFromGitHub,
6}:
7
8buildDotnetModule rec {
9 pname = "BinaryObjectScanner";
10 version = "3.3.4";
11
12 src = fetchFromGitHub {
13 owner = "SabreTools";
14 repo = "BinaryObjectScanner";
15 tag = version;
16 hash = "sha256-FiSBJO4ic/KjokUEP0uB1WNfFRcOWH/x0y9yJMKnl4Q=";
17 };
18
19 dotnet-sdk = dotnetCorePackages.sdk_9_0;
20 dotnet-runtime = dotnetCorePackages.runtime_9_0;
21 dotnetFlags = [ "-p:TargetFramework=net9.0" ];
22 nugetDeps = ./deps.json;
23
24 projectFile = [
25 "ProtectionScan/ProtectionScan.csproj"
26 "ExtractionTool/ExtractionTool.csproj"
27 ];
28 executables = [
29 "ProtectionScan"
30 "ExtractionTool"
31 ];
32
33 meta = {
34 homepage = "https://github.com/SabreTools/BinaryObjectScanner";
35 description = "C# protection, packer, and archive scanning library. Provides ProtectionScan and ExtractionTool";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ hughobrien ];
38 platforms = lib.platforms.unix ++ lib.platforms.windows;
39 mainProgram = "ProtectionScan";
40 };
41}