systemd-cryptsetup-generator: remove
This package previously did override the systemd package, and instructed ninja, systemd's previous build system, to only build the cryptsetup-specific systemd generators (plus some manual rpath massaging, as ninja install wasn't used). Afterwards, users were expected to add this package to their `systemd.generator-packages` (or since https://github.com/NixOS/nixpkgs/pull/65376/files `systemd.packages`) NixOS module options, so systemd will use these generators. As the previous commit added cryptsetup support directly to the systemd package (and pkgs.systemd now already ships the cryptsetup generators), we don't need another package shipping the same generators.
This commit is contained in:
committed by
Florian Klink
parent
0a41d69968
commit
29941db6bd
@@ -1,34 +0,0 @@
|
||||
{ systemd, cryptsetup }:
|
||||
|
||||
systemd.overrideAttrs (p: {
|
||||
version = p.version;
|
||||
name = "systemd-cryptsetup-generator-${p.version}";
|
||||
|
||||
buildInputs = p.buildInputs ++ [ cryptsetup ];
|
||||
outputs = [ "out" ];
|
||||
|
||||
buildPhase = ''
|
||||
ninja systemd-cryptsetup systemd-cryptsetup-generator
|
||||
'';
|
||||
|
||||
# As ninja install is not used here, the rpath needs to be manually fixed.
|
||||
# Otherwise the resulting binary doesn't properly link against systemd-shared.so
|
||||
postFixup = ''
|
||||
for prog in `find $out -type f -executable`; do
|
||||
(patchelf --print-needed $prog | grep 'libsystemd-shared-.*\.so' > /dev/null) && (
|
||||
patchelf --set-rpath `patchelf --print-rpath $prog`:"$out/lib/systemd" $prog
|
||||
) || true
|
||||
done
|
||||
# test it's OK
|
||||
"$out"/lib/systemd/systemd-cryptsetup
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/systemd/
|
||||
cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup
|
||||
cp src/shared/*.so $out/lib/systemd/
|
||||
|
||||
mkdir -p $out/lib/systemd/system-generators/
|
||||
cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user