-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy path0.0.1-dev.nix
More file actions
29 lines (23 loc) · 803 Bytes
/
0.0.1-dev.nix
File metadata and controls
29 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, lib, fetchFromGitHub, rustPlatform, gh, libiconv, which, jq, withCodeQlCli }:
stdenv.mkDerivation rec {
pname = "codeql-ql";
version = "0.1.0-dev";
dontConfigure = true;
dontStrip = true;
dontInstall = true;
dontFixup = true;
src = fetchFromGitHub {
owner = "github";
repo = "codeql";
rev = "codeql-cli/v2.16.0";
sha256 = "x2EFoOt1MZRXxIZt6hF86Z1Qu/hVUoOVla562TApVwo=";
};
nativeBuildInputs = [ gh libiconv which withCodeQlCli jq];
platform = if stdenv.isLinux then "linux64" else "osx64";
buildPhase = ''
runHook preBuild
mkdir -p $out
codeql pack create --threads=0 --output=$out --no-default-compilation-cache --compilation-cache=$TMP_DIR ql/ql/src
runHook postBuild
'';
}