diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-12-28 09:51:16 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-12-28 09:56:29 +0100 |
commit | ad7472b5c33877778c4711305ad053a54da23b95 (patch) | |
tree | 9d50f5f2dbc91c8ff4f493f48d3fd460abbcd6a3 /pkgs/tools/security | |
parent | 1d146c17886e37bd1b3ab57df329c2a4610e1fe8 (diff) |
flare-floss: 2.3.0 -> 3.0.1
Diff: https://github.com/mandiant/flare-floss/compare/refs/tags/v2.3.0...v3.0.1 Changelog: https://github.com/mandiant/flare-floss/releases/tag/v3.0.1
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/flare-floss/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/tools/security/flare-floss/default.nix b/pkgs/tools/security/flare-floss/default.nix index b049ea1661083..212d0a74ebb1e 100644 --- a/pkgs/tools/security/flare-floss/default.nix +++ b/pkgs/tools/security/flare-floss/default.nix @@ -5,15 +5,15 @@ python3.pkgs.buildPythonPackage rec { pname = "flare-floss"; - version = "2.3.0"; - format = "setuptools"; + version = "3.0.1"; + pyproject = true; src = fetchFromGitHub { owner = "mandiant"; repo = "flare-floss"; rev = "refs/tags/v${version}"; fetchSubmodules = true; # for tests - hash = "sha256-tOLnve5XBc3TtSgucPIddBHD0YJhsRpRduXsKrtJ/eQ="; + hash = "sha256-bmOWOFqyvOvSrNTbwLqo0WMq4IAZxZ0YYaWCdCrpziU="; }; postPatch = '' @@ -24,7 +24,12 @@ python3.pkgs.buildPythonPackage rec { --replace 'sigs_path = os.path.join(get_default_root(), "sigs")' 'sigs_path = "'"$out"'/share/flare-floss/sigs"' ''; + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + propagatedBuildInputs = with python3.pkgs; [ + binary2strings halo networkx pefile @@ -47,6 +52,10 @@ python3.pkgs.buildPythonPackage rec { cp -r floss/sigs $out/share/flare-floss/ ''; + preCheck = '' + export HOME=$(mktemp -d) + ''; + meta = with lib; { description = "Automatically extract obfuscated strings from malware"; homepage = "https://github.com/mandiant/flare-floss"; |