diff --git a/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix b/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix index 2935990755c6..11422f7d428d 100644 --- a/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix +++ b/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix @@ -15,11 +15,14 @@ stdenv.lib.overrideDerivation systemd (p: { 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. installPhase = '' mkdir -p $out/lib/systemd/ cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup + cp .libs/*.so $out/lib/ mkdir -p $out/lib/systemd/system-generators/ - cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator + cp .libs/systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator ''; })