Added CodeQL flake
This commit is contained in:
parent
9a171fadab
commit
64139f552b
24
codeql/samples/flake.nix
Normal file
24
codeql/samples/flake.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
lib = pkgs.lib;
|
||||
|
||||
shellWithPkgs = buildInputs: pkgs.mkShell {
|
||||
inherit buildInputs;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default = shellWithPkgs (lib.singleton pkgs.codeql);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user