Unverified Commit 7109a791 authored by Patryk Wychowaniec's avatar Patryk Wychowaniec
Browse files

mstpd: remove `$out/bin/bridge-stp`

parent fff32c00
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -27,6 +27,20 @@ stdenv.mkDerivation (finalAttrs: {
    "--with-bashcompletiondir=$(out)/share/bash-completion/completions"
  ];

  # bridge-stp is a helper called by the kernel whenever STP is enabled/disabled
  # on a bridge - the built-in version is incompatible with NixOS, so there's no
  # point keeping it around.
  #
  # An alternative script gets automatically generated by NixOS network module
  # whenever a bridge needs mstpd (grep for `bridgeStp`).
  postInstall = ''
    rm $out/bin/bridge-stp

    # Remove now-dangling symlinks, too
    rm $out/bin/mstp_restart
    rm $out/lib/mstpctl-utils/mstpctl_restart_config
  '';

  meta = {
    description = "Multiple Spanning Tree Protocol daemon";
    homepage = "https://github.com/mstpd/mstpd";