mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
mssqlhound: init at 2.0.4
This commit is contained in:
41
pkgs/by-name/ms/mssqlhound/package.nix
Normal file
41
pkgs/by-name/ms/mssqlhound/package.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "mssqlhound";
|
||||
version = "2.0.4";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SpecterOps";
|
||||
repo = "MSSQLHound";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-iiOCpLmwmINwYl8FAlfedB8oE3vuDDGObR66qNuup/4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Jro1aiZgdoG9ro9R8WRqSCjYb9UmIz6WIZ4/jAl9y+o=";
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
checkPhase = ''
|
||||
go test ./...
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Go collector for adding MSSQL attack paths to BloodHound with OpenGraph";
|
||||
homepage = "https://github.com/SpecterOps/MSSQLHound";
|
||||
changelog = "https://github.com/SpecterOps/MSSQLHound/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ felbinger ];
|
||||
mainProgram = "mssqlhound";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user