-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
28 lines (25 loc) · 821 Bytes
/
flake.nix
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
{
description = "Nix flake for local BPF dev experiments";
inputs = {
nixos-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixos-stable, nixpkgs-unstable, flake-utils, ... }:
flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (system:
let
pkgs = import nixos-stable { inherit system; };
unstable-pkgs = import nixpkgs-unstable { inherit system; };
in
{
devShells.default = pkgs.mkShell {
hardeningDisable = [ "stackprotector" ];
packages = [
pkgs.clang_14
pkgs.llvm
pkgs.elfutils
pkgs.zlib
pkgs.pkg-config ];
};
});
}