networkd-dispatcher: remove unused configparser, use installManPage and --replace-fail

+5 -4
+5 -4
pkgs/by-name/ne/networkd-dispatcher/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitLab, 5 5 fetchpatch, 6 + installShellFiles, 6 7 python3Packages, 7 8 asciidoc, 8 9 wrapGAppsNoGuiHook, ··· 36 37 postPatch = '' 37 38 # Fix paths in systemd unit file 38 39 substituteInPlace networkd-dispatcher.service \ 39 - --replace "/usr/bin/networkd-dispatcher" "$out/bin/networkd-dispatcher" 40 + --replace-fail "/usr/bin/networkd-dispatcher" "$out/bin/networkd-dispatcher" 40 41 # Remove conditions on existing rules path 41 42 sed -i '/ConditionPathExistsGlob/g' networkd-dispatcher.service 42 43 ''; 43 44 44 45 nativeBuildInputs = [ 45 - asciidoc 46 + asciidoc # for a2x 47 + installShellFiles 46 48 wrapGAppsNoGuiHook 47 49 python3Packages.wrapPython 48 50 ]; ··· 58 60 ]; 59 61 60 62 pythonPath = with python3Packages; [ 61 - configparser 62 63 dbus-python 63 64 pygobject3 64 65 ]; ··· 68 69 install -D -m755 -t $out/bin networkd-dispatcher 69 70 install -Dm644 networkd-dispatcher.service $out/lib/systemd/system/networkd-dispatcher.service 70 71 install -Dm644 networkd-dispatcher.conf $out/etc/conf.d/networkd-dispatcher.conf 71 - install -D networkd-dispatcher.8 -t $out/share/man/man8/ 72 + installManPage networkd-dispatcher.8 72 73 runHook postInstall 73 74 ''; 74 75