1 { lib, stdenv, fetchzip, zlib, xorg, freetype, jdk11, curl }:
3 stdenv.mkDerivation rec {
12 url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip";
13 sha256 = "sha256-nY31/coUnBNkKg10SOd64sBBkV44g+eIXyKIrPq1IWU=";
30 # codeql directory should not be top-level, otherwise,
31 # it'll include /nix/store to resolve extractors.
32 mkdir -p $out/{codeql,bin}
35 ln -sf $out/codeql/tools/linux64/lib64trace.so $out/codeql/tools/linux64/libtrace.so
37 sed -i 's%\$CODEQL_DIST/tools/\$CODEQL_PLATFORM/java%\${jdk11}%g' $out/codeql/codeql
39 ln -s $out/codeql/codeql $out/bin/
43 description = "Semantic code analysis engine";
44 homepage = "https://codeql.github.com";
45 maintainers = [ maintainers.dump_stack ];
46 platforms = lib.platforms.linux ++ lib.platforms.darwin;
47 license = licenses.unfree;