Unverified Commit 5e941fed authored by Jared Baur's avatar Jared Baur
Browse files

bpfilter: 0.4.0 -> 0.5.2

parent 63ba1c64
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
{
  bison,
  clangStdenv,
  cmake,
  cmocka,
  doxygen,
@@ -14,19 +15,19 @@
  nix-update-script,
  pkg-config,
  sphinx,
  stdenv,
  tinyxxd,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
clangStdenv.mkDerivation (finalAttrs: {
  pname = "bpfilter";
  version = "0.4.0";
  version = "0.5.2";

  src = fetchFromGitHub {
    owner = "facebook";
    repo = "bpfilter";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Z0L4sY944cj/rqfOwwjNWOU0tZDAsZ1ocf4/djHad2Q=";
    hash = "sha256-qL5wRm6QmfMa5L+oZc5E2kAVqvJfCt5fBxjmtWzb2kA=";
  };

  nativeBuildInputs = [
@@ -38,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
    lcov
    pkg-config
    sphinx
    tinyxxd

    # bpfilter's cmake files requires this, even if we specify the version
    # we're using without needing to detect the version during the build.
@@ -64,6 +66,9 @@ stdenv.mkDerivation (finalAttrs: {
    "dev"
  ];

  # invalid with -target bpf
  hardeningDisable = [ "zerocallusedregs" ];

  preFixup = ''
    substituteInPlace $out/lib/systemd/system/bpfilter.service --replace-fail /usr/sbin/bpfilter $out/bin/bpfilter