From c7f31cfa6a26bb71e7198594c228f43ba92112b7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 31 Oct 2021 20:23:34 +0000 Subject: [PATCH] cvise: 2.3.0 -> 2.4.0 Add new python3Packages.chardet dependency and switch to latest llvm. cvise does a good job supporting llvm version range. --- pkgs/development/tools/misc/cvise/default.nix | 8 ++++---- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/misc/cvise/default.nix b/pkgs/development/tools/misc/cvise/default.nix index 80d2a73cc425..d6ad65164b74 100644 --- a/pkgs/development/tools/misc/cvise/default.nix +++ b/pkgs/development/tools/misc/cvise/default.nix @@ -1,17 +1,17 @@ { lib, buildPythonApplication, fetchFromGitHub, bash, cmake, flex , libclang, llvm, unifdef -, pebble, psutil, pytestCheckHook, pytest-flake8 +, chardet, pebble, psutil, pytestCheckHook, pytest-flake8 }: buildPythonApplication rec { pname = "cvise"; - version = "2.3.0"; + version = "2.4.0"; src = fetchFromGitHub { owner = "marxin"; repo = "cvise"; rev = "v${version}"; - sha256 = "1x2i8nv0nncgvr07znhh2slngbrg8qcsz2zqx76bcyq9hssn6yal"; + sha256 = "0cfzikkhp91hjgxjk3izzczb8d9p8v9zsfyk6iklk92n5qf1aakq"; }; patches = [ @@ -21,7 +21,7 @@ buildPythonApplication rec { nativeBuildInputs = [ cmake flex llvm.dev ]; buildInputs = [ bash libclang llvm llvm.dev unifdef ]; - propagatedBuildInputs = [ pebble psutil ]; + propagatedBuildInputs = [ chardet pebble psutil ]; checkInputs = [ pytestCheckHook pytest-flake8 unifdef ]; # 'cvise --command=...' generates a script with hardcoded shebang. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index df080da43e7b..8299fee4ff4f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14290,7 +14290,8 @@ with pkgs; cvehound = callPackage ../development/tools/analysis/cvehound { }; cvise = python3Packages.callPackage ../development/tools/misc/cvise { - inherit (llvmPackages_11) llvm libclang; + # cvise keeps up with fresh llvm releases and supports wide version range + inherit (llvmPackages_latest) llvm libclang; }; cwltool = callPackage ../applications/science/misc/cwltool { };