Loading pkgs/development/python-modules/slither-analyzer/default.nix +20 −12 Original line number Diff line number Diff line { lib, buildPythonPackage, crytic-compile, fetchFromGitHub, # build-system hatchling, # nativeBuildInputs makeWrapper, # dependencies crytic-compile, packaging, prettytable, solc, testers, versionCheckHook, web3, # tests versionCheckHook, writableTmpDirAsHomeHook, # postFixup solc, withSolc ? false, }: Loading @@ -37,18 +48,17 @@ buildPythonPackage (finalAttrs: { web3 ]; nativeInstallCheckInputs = [ versionCheckHook ]; nativeCheckInputs = [ versionCheckHook writableTmpDirAsHomeHook ]; versionCheckKeepEnvironment = [ "HOME" ]; postFixup = lib.optionalString withSolc '' wrapProgram $out/bin/slither \ --prefix PATH : "${lib.makeBinPath [ solc ]}" ''; # required for pythonImportsCheck postInstall = '' export HOME="$TEMP" ''; pythonImportsCheck = [ "slither" "slither.all_exceptions" Loading @@ -66,8 +76,6 @@ buildPythonPackage (finalAttrs: { "slither.vyper_parsing" ]; doInstallCheck = true; meta = { description = "Static Analyzer for Solidity"; longDescription = '' Loading Loading
pkgs/development/python-modules/slither-analyzer/default.nix +20 −12 Original line number Diff line number Diff line { lib, buildPythonPackage, crytic-compile, fetchFromGitHub, # build-system hatchling, # nativeBuildInputs makeWrapper, # dependencies crytic-compile, packaging, prettytable, solc, testers, versionCheckHook, web3, # tests versionCheckHook, writableTmpDirAsHomeHook, # postFixup solc, withSolc ? false, }: Loading @@ -37,18 +48,17 @@ buildPythonPackage (finalAttrs: { web3 ]; nativeInstallCheckInputs = [ versionCheckHook ]; nativeCheckInputs = [ versionCheckHook writableTmpDirAsHomeHook ]; versionCheckKeepEnvironment = [ "HOME" ]; postFixup = lib.optionalString withSolc '' wrapProgram $out/bin/slither \ --prefix PATH : "${lib.makeBinPath [ solc ]}" ''; # required for pythonImportsCheck postInstall = '' export HOME="$TEMP" ''; pythonImportsCheck = [ "slither" "slither.all_exceptions" Loading @@ -66,8 +76,6 @@ buildPythonPackage (finalAttrs: { "slither.vyper_parsing" ]; doInstallCheck = true; meta = { description = "Static Analyzer for Solidity"; longDescription = '' Loading