From c6a73a296eb0aad5a1ebde95c596653f0fdc06a6 Mon Sep 17 00:00:00 2001 From: Susan Potter Date: Mon, 29 Mar 2021 15:55:39 -0500 Subject: [PATCH] nuclei: use declarative Go package attributes --- pkgs/tools/security/nuclei/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/nuclei/default.nix b/pkgs/tools/security/nuclei/default.nix index 1c1b0e41068..977a49617c6 100644 --- a/pkgs/tools/security/nuclei/default.nix +++ b/pkgs/tools/security/nuclei/default.nix @@ -16,9 +16,10 @@ buildGoModule rec { vendorSha256 = "sha256-qmuua7HXnwuy24CSqHKALqNDmXBvSIXYTVu3kaGVoeU="; - preBuild = '' - mv v2/* . - ''; + modRoot = "./v2"; + subPackages = [ + "cmd/nuclei/" + ]; # Test files are not part of the release tarball doCheck = false;