ebpf-sandbox/flake.nix
2024-12-24 21:34:28 +01:00

24 lines
568 B
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
packages = {
dropworld = pkgs.callPackage ./dropworld {};
tcpfilter = pkgs.callPackage ./tcpfilter {};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [bpftools bpftop];
};
}
);
}