diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 916e7f8ee455..86460d4bbae1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11195,12 +11195,11 @@ in # In nixos, you can set systemd.package = pkgs.systemd_with_lvm2 to get # LVM2 working in systemd. - systemd_with_lvm2 = pkgs.lib.overrideDerivation pkgs.systemd (p: { - name = p.name + "-with-lvm2"; + systemd_with_lvm2 = pkgs.appendToName "with-lvm2" (pkgs.lib.overrideDerivation pkgs.systemd (p: { postInstall = p.postInstall + '' cp "${pkgs.lvm2}/lib/systemd/system-generators/"* $out/lib/systemd/system-generators ''; - }); + })); sysvinit = callPackage ../os-specific/linux/sysvinit { };