knot-resolver: fix a stupid system breaking non-systemd

I hope this will fix darwin build (no good way of testing locally).
This commit is contained in:
Vladimír Čunát 2020-11-17 20:05:51 +01:00
parent cd5c7c0ee6
commit 335798d243
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -74,6 +74,7 @@ unwrapped = stdenv.mkDerivation rec {
postInstall = ''
rm "$out"/lib/libkres.a
rm "$out"/lib/knot-resolver/upgrade-4-to-5.lua # not meaningful on NixOS
'' + optionalString stdenv.targetPlatform.isLinux ''
rm -r "$out"/lib/sysusers.d/ # ATM more likely to harm than help
'';