mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
sharefinder: init at 1.4.0 (#532115)
This commit is contained in:
commit
d93e6c1943
1 changed files with 43 additions and 0 deletions
43
pkgs/by-name/sh/sharefinder/package.nix
Normal file
43
pkgs/by-name/sh/sharefinder/package.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "sharefinder";
|
||||
version = "1.4.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vflame6";
|
||||
repo = "sharefinder";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-82hQPz05Xzvq5ggUht3GFaJ+3yEjES94mfZjQd5a+rA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-ABPq6WKYIjyCX5K8iU++6dszUW7s9Ld1Queb2hGdGzs=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-X=github.com/vflame6/sharefinder/cmd.VERSION=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Active network shares enumeration tool";
|
||||
homepage = "https://github.com/vflame6/sharefinder";
|
||||
changelog = "https://github.com/vflame6/sharefinder/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "sharefinder";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue