clevis: drop redundant systemd-reply-password meson patch

This commit is contained in:
Kevin Cotrone
2026-04-27 20:46:09 -07:00
parent b5cb2cc43f
commit fdc60ea709
-8
View File
@@ -78,10 +78,6 @@ stdenv.mkDerivation (finalAttrs: {
# be vulnerable to code injection. This hint is a courtesy of Stack Exchange:
# https://unix.stackexchange.com/a/267438
#
# Meson's find_program only searches paths relative to the build prefix
# and /usr/lib, neither of which contain systemd-reply-password in the
# nix store. Prepend the actual nix store path so meson can find it.
#
# The systemd pkgconfig variable 'systemdsystemunitdir' points into the
# read-only systemd store path. Redirect unit installation to $out.
postPatch = ''
@@ -90,10 +86,6 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace "$f" --replace-fail '/bin/cat' '${lib.getExe' coreutils "cat"}'
done
substituteInPlace src/luks/systemd/meson.build \
--replace-fail "sd_reply_pass = find_program(" \
"sd_reply_pass = find_program('${systemd}/lib/systemd/systemd-reply-password',"
substituteInPlace src/luks/systemd/meson.build \
--replace-fail "unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')" \
"unitdir = join_paths(get_option('prefix'), 'lib', 'systemd', 'system')"