systemd-cryptsetup-generator: fix compilation with systemd 237
Closes #35097
This commit is contained in:
parent
f8b5b93b88
commit
d351cd9f69
@ -10,21 +10,15 @@ stdenv.lib.overrideDerivation systemd (p: {
|
|||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make $makeFlags built-sources
|
ninja systemd-cryptsetup systemd-cryptsetup-generator
|
||||||
make $makeFlags systemd-cryptsetup
|
|
||||||
make $makeFlags 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 = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/systemd/
|
mkdir -p $out/lib/systemd/
|
||||||
cp .libs/systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
|
cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
|
||||||
cp .libs/*.so $out/lib/
|
cp src/shared/*.so $out/lib/systemd/
|
||||||
|
|
||||||
mkdir -p $out/lib/systemd/system-generators/
|
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
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user