Skip to content

Commit a916454

Browse files
authored
Update nix flake and fix nix build (#9)
* update for latest nix: s/devShell/packages.default * nix flake update * fix nix build
1 parent 5ba4410 commit a916454

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

flake.lock

Lines changed: 24 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
pkgs = nixpkgs.legacyPackages.${system};
1313
in
1414
{
15-
devShell = pkgs.mkShell {
15+
packages.default = pkgs.mkShell {
1616
name = "libbpf-template";
1717
nativeBuildInputs = with pkgs; [
1818
clang
@@ -24,6 +24,13 @@
2424
elfutils
2525
zlib
2626
];
27+
28+
# See prior art in nixpkgs at:
29+
# * https://github.com/NixOS/nixpkgs/issues/325910
30+
# * https://github.com/NixOS/nixpkgs/pull/325587
31+
hardeningDisable = [
32+
"zerocallusedregs"
33+
];
2734
};
2835
}
2936
);

0 commit comments

Comments
 (0)