systemd-cryptsetup-generator: fix compilation with systemd 237

Closes #35097
This commit is contained in:
Pascal Bach 2018-02-20 12:06:55 +01:00 committed by Tuomas Tynkkynen
parent f8b5b93b88
commit d351cd9f69

View File

@ -10,21 +10,15 @@ stdenv.lib.overrideDerivation systemd (p: {
outputs = [ "out" ];
buildPhase = ''
make $makeFlags built-sources
make $makeFlags systemd-cryptsetup
make $makeFlags systemd-cryptsetup-generator
ninja systemd-cryptsetup systemd-cryptsetup-generator
'';
# For some reason systemd-cryptsetup-generator is a wrapper-script
# with the current release of systemd. We want the real one.
# TODO: Remove `.libs` prefix when the wrapper-script is gone
installPhase = ''
mkdir -p $out/lib/systemd/
cp .libs/systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
cp .libs/*.so $out/lib/
cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
cp src/shared/*.so $out/lib/systemd/
mkdir -p $out/lib/systemd/system-generators/
cp .libs/systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator
cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator
'';
})