@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, pkgconfig, removeReferencesTo
1+{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, removeReferencesTo
22, libevent, readline, net_snmp }:
33
44stdenv.mkDerivation rec {
@@ -10,6 +10,16 @@ stdenv.mkDerivation rec {
1010 sha256 = "0lgiappbjm95r1m0xyxb6gzz4izcjixknbzq3s7pbqbsmhm642s5";
1111 };
1212
13+ patches = [
14+ # Fixes #44507: The service fails to start due to a /bin/mkdir call.
15+ # Should be included in the upstream release after 1.0.1.
16+ # Please remove this patch when updating and ensure the NixOS service starts.
17+ (fetchpatch {
18+ url = "https://github.com/vincentbernat/lldpd/commit/90a50860ebdcdeb5b7dc85790b18bed23c97ec32.patch";
19+ sha256 = "005i4ldc4mfzfmvbnid6849ax2i93mx8nkyf8vjv8k73bfpdza8z";
20+ })
21+ ];
22+
1323 configureFlags = [
1424 "--localstatedir=/var"
1525 "--enable-pie"