systemd-cryptsetup-generator: Fix bug.

The annoying wrapper script also wraps `systemd-cryptsetup`. We need to
copy the original binary to $out too.
This commit is contained in:
Moritz Ulrich 2016-08-15 12:41:45 +02:00
parent b22fc4c411
commit 21df40f85f

View File

@ -18,10 +18,10 @@ stdenv.lib.overrideDerivation systemd (p: {
# For some reason systemd-cryptsetup-generator is a wrapper-script
# with the current release of systemd. We want the real one.
# TODO: Revert 3efadce when the wrapper-script is gone
# TODO: Remove `.libs` prefix when the wrapper-script is gone
installPhase = ''
mkdir -p $out/lib/systemd/
cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
cp .libs/systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
cp .libs/*.so $out/lib/
mkdir -p $out/lib/systemd/system-generators/