git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46367 from yesbox/lldpd_nixos_18.09_fix

Fixes the lldpd service not starting on NixOS 18.09

commiteae589058c12d2470ef7948eb4158f42382b03ec authorTimo Kaufmann <timokau@zoho.com> dateTue 11 Sep 2018, 20:44 (8 years ago) parentb6bfbaf8a03ec0
1 file changed+11−1
pkgs/tools/networking/lldpd/default.nix+11−1
pkgs/tools/networking/lldpd/default.nix+11−1
@@ -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"