From 7aa5a5eb8f52567efa0e91c7b0f7368327762a02 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Fri, 3 Sep 2021 13:22:02 +0100 Subject: [PATCH 1/3] codeql: trim nativeBuildInputs These dependencies are not needed for recent CodeQL versions. Removing them also makes this package buildable on darwin. --- .../development/tools/analysis/codeql/default.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pkgs/development/tools/analysis/codeql/default.nix b/pkgs/development/tools/analysis/codeql/default.nix index a4c51121cd5f..66cd8a7217c0 100644 --- a/pkgs/development/tools/analysis/codeql/default.nix +++ b/pkgs/development/tools/analysis/codeql/default.nix @@ -1,14 +1,4 @@ -{ lib, stdenv -, fetchzip -, zlib -, xorg -, freetype -, alsa-lib -, jdk11 -, curl -, lttng-ust -, autoPatchelfHook -}: +{ lib, stdenv, fetchzip, zlib, xorg, freetype, jdk11, curl, autoPatchelfHook }: stdenv.mkDerivation rec { pname = "codeql"; @@ -31,12 +21,9 @@ stdenv.mkDerivation rec { xorg.libXtst xorg.libXrender freetype - alsa-lib jdk11 stdenv.cc.cc.lib curl - lttng-ust - autoPatchelfHook ]; installPhase = '' From f9ae94032f8b73191b06201e1d7ed3bcd606b7a7 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Fri, 3 Sep 2021 13:22:39 +0100 Subject: [PATCH 2/3] codeql: update homepage --- pkgs/development/tools/analysis/codeql/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/analysis/codeql/default.nix b/pkgs/development/tools/analysis/codeql/default.nix index 66cd8a7217c0..9849616f0424 100644 --- a/pkgs/development/tools/analysis/codeql/default.nix +++ b/pkgs/development/tools/analysis/codeql/default.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Semantic code analysis engine"; - homepage = "https://semmle.com/codeql"; + homepage = "https://codeql.github.com"; maintainers = [ maintainers.dump_stack ]; license = licenses.unfree; }; From 1d369f09634308b9a5a4603a88ea52014b537767 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Fri, 3 Sep 2021 13:22:26 +0100 Subject: [PATCH 3/3] codeql: 2.5.9 -> 2.6.2 This requires a minor change to accommodate a different path to Java in the codeql script. --- pkgs/development/tools/analysis/codeql/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/analysis/codeql/default.nix b/pkgs/development/tools/analysis/codeql/default.nix index 9849616f0424..52169ccab115 100644 --- a/pkgs/development/tools/analysis/codeql/default.nix +++ b/pkgs/development/tools/analysis/codeql/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { pname = "codeql"; - version = "2.5.9"; + version = "2.6.2"; dontConfigure = true; dontBuild = true; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { src = fetchzip { url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip"; - sha256 = "sha256-r3Jm+VYjn0Dz4BCSbADbgTWL1owbyIXlkoj6mOmZcZk="; + sha256 = "096w9w52rj854i7rmpgy99k9z9ja2dfvj2d02dnpagwd7pc6a6bl"; }; nativeBuildInputs = [ @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { ln -sf $out/codeql/tools/linux64/lib64trace.so $out/codeql/tools/linux64/libtrace.so - sed -i 's;"$CODEQL_DIST/tools/$CODEQL_PLATFORM/java/bin/java";"${jdk11}/bin/java";' $out/codeql/codeql + sed -i 's%\$CODEQL_DIST/tools/\$CODEQL_PLATFORM/java%\${jdk11}%g' $out/codeql/codeql ln -s $out/codeql/codeql $out/bin/ '';