Skip to content

Commit

Permalink
add direnv and flake support
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Mar 24, 2023
1 parent 59497a4 commit a8b4f6b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.direnv
bin
42 changes: 42 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
description = "cilium ebpf template";

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
name = "cilium-template";
nativeBuildInputs = with pkgs; [
go
clang
llvm
pkg-config
];

packages = with pkgs; [
elfutils
zlib
];
};
}
);
}

0 comments on commit a8b4f6b

Please sign in to comment.