Skip to content

Commit 131f6ab

Browse files
committed
Add shell derivate to test CodeQL CLI
1 parent 6fe5e35 commit 131f6ab

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tooling/codeql/codeql-cli/default.nix

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
let
2+
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/0e148322b344eab7c8d52f6e59b0d95ba73fb62e.tar.gz";
3+
pkgs = (import nixpkgs { config = {}; overlays = []; });
4+
in
5+
{
6+
codeql-cli_2_16_0 = pkgs.callPackage ./2.16.0.nix {};
7+
}

tooling/codeql/codeql-cli/shell.nix

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
let
2+
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/0e148322b344eab7c8d52f6e59b0d95ba73fb62e.tar.gz";
3+
pkgs = (import nixpkgs { config = {}; overlays = []; });
4+
codeql = import ./default.nix;
5+
in
6+
7+
pkgs.mkShell {
8+
packages = with codeql; [
9+
codeql-cli_2_16_0
10+
];
11+
}

0 commit comments

Comments
 (0)