uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/tools/analysis/codeql/default.nix
Normal file
49
pkgs/development/tools/analysis/codeql/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchzip, zlib, xorg, freetype, jdk11, curl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "codeql";
|
||||
version = "2.8.5";
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontStrip = true;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip";
|
||||
sha256 = "sha256-HZJBqm196RgWR/14mfrLYQlU+4W3t0b4TXme04XkfKw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
zlib
|
||||
xorg.libX11
|
||||
xorg.libXext
|
||||
xorg.libXi
|
||||
xorg.libXtst
|
||||
xorg.libXrender
|
||||
freetype
|
||||
jdk11
|
||||
stdenv.cc.cc.lib
|
||||
curl
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
# codeql directory should not be top-level, otherwise,
|
||||
# it'll include /nix/store to resolve extractors.
|
||||
mkdir -p $out/{codeql,bin}
|
||||
cp -R * $out/codeql/
|
||||
|
||||
ln -sf $out/codeql/tools/linux64/lib64trace.so $out/codeql/tools/linux64/libtrace.so
|
||||
|
||||
sed -i 's%\$CODEQL_DIST/tools/\$CODEQL_PLATFORM/java%\${jdk11}%g' $out/codeql/codeql
|
||||
|
||||
ln -s $out/codeql/codeql $out/bin/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Semantic code analysis engine";
|
||||
homepage = "https://codeql.github.com";
|
||||
maintainers = [ maintainers.dump_stack ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
license = licenses.unfree;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue